From 7561181f03e6de08892c090335f0955f61c5ca29 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 16 Oct 2004 13:39:45 +0000 Subject: [PATCH] suppress VC++ warning about long -> void * conversion too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/wx/defs.h b/include/wx/defs.h index 5384b97696..32142feef6 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -796,7 +796,15 @@ inline wxUIntPtr wxPtrToUInt(const void *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); + +#ifdef __VISUALC__ + #pragma warning(default: 4312) +#endif } #endif /*__cplusplus*/ -- 2.47.2