]> git.saurik.com Git - wxWidgets.git/commitdiff
build fixes for 64-bit
authorPaul Cornett <paulcor@bullseye.com>
Thu, 15 Nov 2007 16:34:36 +0000 (16:34 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 15 Nov 2007 16:34:36 +0000 (16:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datavcmn.cpp

index af4de712b26ffb91a81f43547ed6db886a0dc3ff..31a5dd8b41bc970b731262bad95287cbbe3532d3 100644 (file)
@@ -361,7 +361,7 @@ unsigned int wxDataViewIndexListModel::GetRow( const wxDataViewItem &item ) cons
 {
     if (m_ordered)
     {
-        unsigned int pos = (unsigned int) item.GetID();
+        unsigned int pos = wxPtrToUInt(item.GetID());
         return pos-1;
     }
     
@@ -387,8 +387,8 @@ int wxDataViewIndexListModel::Compare(const wxDataViewItem& item1,
 {
     if (m_ordered)
     {
-        unsigned int pos1 = (unsigned int) item1.GetID();
-        unsigned int pos2 = (unsigned int) item2.GetID();
+        unsigned int pos1 = wxPtrToUInt(item1.GetID());
+        unsigned int pos2 = wxPtrToUInt(item2.GetID());
         
         if (ascending)
             return pos1 - pos2;