VC++ warning fixes for /Wp64

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-10-15 13:09:00 +00:00
parent b9daf00aac
commit 1a14587d59

View File

@ -61,8 +61,8 @@ public:
#if WXWIN_COMPATIBILITY_2_4 #if WXWIN_COMPATIBILITY_2_4
// deprecated: only for compatibility, don't work on 64 bit archs // deprecated: only for compatibility, don't work on 64 bit archs
wxTreeItemId(long item) { m_pItem = (wxTreeItemIdValue)item; } wxTreeItemId(long item) { wxULongToPtr(m_pItem, item); }
operator long() const { return (long)m_pItem; } operator long() const { return (long)wxPtrToUInt(m_pItem); }
#else // !WXWIN_COMPATIBILITY_2_4 #else // !WXWIN_COMPATIBILITY_2_4
operator bool() const { return IsOk(); } operator bool() const { return IsOk(); }
#endif // WXWIN_COMPATIBILITY_2_4/!WXWIN_COMPATIBILITY_2_4 #endif // WXWIN_COMPATIBILITY_2_4/!WXWIN_COMPATIBILITY_2_4