From a4588fd1df27e5d1557796825b47e37627e3de7e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 17 Sep 2005 22:00:32 +0000 Subject: [PATCH] use wxPtrToUInt() instead of casting pointers to int which dosen't work in 64 bit compilation mode with SGI CC git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/scrolbar.cpp | 2 +- src/motif/window.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/motif/scrolbar.cpp b/src/motif/scrolbar.cpp index bb3f97a8d2..79662ae942 100644 --- a/src/motif/scrolbar.cpp +++ b/src/motif/scrolbar.cpp @@ -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) diff --git a/src/motif/window.cpp b/src/motif/window.cpp index aac080b93a..4d10afdafd 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -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)