]> git.saurik.com Git - wxWidgets.git/commitdiff
use wxPtrToUInt() instead of casting pointers to int which dosen't work in 64 bit...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Sep 2005 22:00:32 +0000 (22:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Sep 2005 22:00:32 +0000 (22:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/scrolbar.cpp
src/motif/window.cpp

index bb3f97a8d24262bd4506ade89412a5af3da16c89..79662ae942f79d9fa386fbdc9259cf1b8e5d99f7 100644 (file)
@@ -130,7 +130,7 @@ static void wxScrollBarCallback(Widget widget, XtPointer clientData,
                                 XmScaleCallbackStruct *cbs)
 {
     wxScrollBar *scrollBar = (wxScrollBar*)wxGetWindowFromTable(widget);
-    wxOrientation orientation = (wxOrientation)(int)clientData;
+    wxOrientation orientation = (wxOrientation)wxPtrToUInt(clientData);
     wxEventType eventType = wxEVT_NULL;
 
     switch (cbs->reason)
index aac080b93aa92b78c9b331b7e43a59a340608299..4d10afdafd4fe18e45f7999692d163894d23e467 100644 (file)
@@ -2088,7 +2088,7 @@ static void wxScrollBarCallback(Widget scrollbar,
                                 XmScrollBarCallbackStruct *cbs)
 {
     wxWindow *win = wxGetWindowFromTable(scrollbar);
-    wxOrientation orientation = (wxOrientation)(int)clientData;
+    wxOrientation orientation = (wxOrientation)wxPtrToUInt(clientData);
 
     wxEventType eventType = wxEVT_NULL;
     switch (cbs->reason)