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
This commit is contained in:
Vadim Zeitlin 2004-10-16 13:39:45 +00:00
parent 7a295dfa5c
commit 7561181f03

View File

@ -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*/