diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index 0217bb0ec2..93dde3d838 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -232,8 +232,8 @@ public: if (res) return res; // items must be different - unsigned long litem1 = (unsigned long) item1.GetID(); - unsigned long litem2 = (unsigned long) item2.GetID(); + wxUIntPtr litem1 = (wxUIntPtr) item1.GetID(); + wxUIntPtr litem2 = (wxUIntPtr) item2.GetID(); return litem1-litem2; }