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:
@@ -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*/
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user