]> git.saurik.com Git - wxWidgets.git/commitdiff
suppress VC++ warning about long -> void * conversion too
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 16 Oct 2004 13:39:45 +0000 (13:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 16 Oct 2004 13:39:45 +0000 (13:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h

index 5384b976963e0663ebb5a65e8222045f000a13c7..32142feef6f96289e9fa7b771e3f1b510a28f7ca 100644 (file)
@@ -796,7 +796,15 @@ inline wxUIntPtr wxPtrToUInt(const void *p)
 
 inline void *wxUIntToPtr(wxUIntPtr p)
 {
 
 inline void *wxUIntToPtr(wxUIntPtr p)
 {
+#ifdef __VISUALC__
+    #pragma warning(disable: 4312) /* conversion to type of greater size */
+#endif
+
     return wx_reinterpret_cast(void *, p);
     return wx_reinterpret_cast(void *, p);
+
+#ifdef __VISUALC__
+    #pragma warning(default: 4312)
+#endif
 }
 #endif /*__cplusplus*/
 
 }
 #endif /*__cplusplus*/