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
This commit is contained in:
Vadim Zeitlin 2005-09-17 22:00:32 +00:00
parent 2263a14efc
commit a4588fd1df
2 changed files with 2 additions and 2 deletions

View 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)

View 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)