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:
parent
2263a14efc
commit
a4588fd1df
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user