X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb719f2e29bd20effa3259d2d7dead9fd857442c..3692b33c7f1d4f86c3e5333954c454b15c20b4d2:/include/wx/treebase.h diff --git a/include/wx/treebase.h b/include/wx/treebase.h index 45e231cdc4..fe2cb9135b 100644 --- a/include/wx/treebase.h +++ b/include/wx/treebase.h @@ -61,8 +61,8 @@ public: #if WXWIN_COMPATIBILITY_2_4 // deprecated: only for compatibility, don't work on 64 bit archs - wxTreeItemId(long item) { m_pItem = (wxTreeItemIdValue)item; } - operator long() const { return (long)m_pItem; } + wxTreeItemId(long item) { m_pItem = wxUIntToPtr(item); } + operator long() const { return (long)wxPtrToUInt(m_pItem); } #else // !WXWIN_COMPATIBILITY_2_4 operator bool() const { return IsOk(); } #endif // WXWIN_COMPATIBILITY_2_4/!WXWIN_COMPATIBILITY_2_4