[PATCH] [1/1] include/basetsd.h fix bad casting

max+git at mtew.isa-geek.net max+git at mtew.isa-geek.net
Fri Oct 12 02:02:56 CDT 2012


From: Max TenEyck Woodbury <max+git at mtew.isa-geek.net>

---
 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) */
 
-- 
1.7.7.6




More information about the wine-patches mailing list