[PATCH 1/1] include/basetsd.h: fix bad casting
Max TenEyck Woodbury
max at mtew.isa-geek.net
Fri Oct 12 11:15:54 CDT 2012
include/basetsd.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/basetsd.h b/include/basetsd.h
index 698dd5c..820fb08 100644
--- a/include/basetsd.h
+++ b/include/basetsd.h
@@ -248,10 +248,10 @@ typedef unsigned short UHALF_PTR, *PUHALF_PTR;
#define PtrToInt(p) ((INT)(INT_PTR)(p))
#define PtrToUshort(p) ((USHORT)(ULONG_PTR)(p))
#define PtrToShort(p) ((SHORT)(LONG_PTR)(p))
-#define IntToPtr(i) ((void *)(INT_PTR)((INT)i))
-#define UIntToPtr(ui) ((void *)(UINT_PTR)((UINT)ui))
-#define LongToPtr(l) ((void *)(LONG_PTR)((LONG)l))
-#define ULongToPtr(ul) ((void *)(ULONG_PTR)((ULONG)ul))
+#define IntToPtr(i) ((void *)(INT_PTR)(i))
+#define UIntToPtr(ui) ((void *)(UINT_PTR)(ui))
+#define LongToPtr(l) ((void *)(LONG_PTR)(l))
+#define ULongToPtr(ul) ((void *)(ULONG_PTR)(ul))
#endif /* defined(_WIN64) || defined(_WIN32) */
More information about the wine-patches
mailing list