diff options
author | marha <marha@users.sourceforge.net> | 2013-12-21 14:53:11 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-12-21 14:53:11 +0100 |
commit | 90077a910e62ec55bc1e5a98f5946754c9c5f8bd (patch) | |
tree | a480babd4a7c61d52edc2cc555b5d20eab69f737 /libXt | |
parent | 52cd3051ba15ddda117f8d8cae1979cd3c86f5b6 (diff) | |
download | vcxsrv-90077a910e62ec55bc1e5a98f5946754c9c5f8bd.tar.gz vcxsrv-90077a910e62ec55bc1e5a98f5946754c9c5f8bd.tar.bz2 vcxsrv-90077a910e62ec55bc1e5a98f5946754c9c5f8bd.zip |
Solved 64-bit run-time problems
Diffstat (limited to 'libXt')
-rw-r--r-- | libXt/include/X11/Intrinsic.h | 2 | ||||
-rw-r--r-- | libXt/src/EventUtil.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libXt/include/X11/Intrinsic.h b/libXt/include/X11/Intrinsic.h index 44a1b360a..0488be908 100644 --- a/libXt/include/X11/Intrinsic.h +++ b/libXt/include/X11/Intrinsic.h @@ -113,7 +113,7 @@ typedef struct _XtEventRec *XtEventTable; typedef struct _XtAppStruct *XtAppContext;
typedef unsigned long XtValueMask;
-typedef unsigned long XtIntervalId;
+typedef uintptr_t XtIntervalId;
typedef unsigned long XtInputId;
typedef unsigned long XtWorkProcId;
typedef unsigned long XtSignalId;
diff --git a/libXt/src/EventUtil.c b/libXt/src/EventUtil.c index 91ad31fae..3127efc84 100644 --- a/libXt/src/EventUtil.c +++ b/libXt/src/EventUtil.c @@ -111,7 +111,7 @@ XtPerWidgetInput _XtGetPerWidgetInput( perWidgetInputContext = XUniqueContext(); if (XFindContext(dpy, - (Window)widget, + (Window)(((intptr_t)widget)&0xffffffff), perWidgetInputContext, (XPointer *)&pwi) && create) @@ -134,7 +134,7 @@ XtPerWidgetInput _XtGetPerWidgetInput( _XtDestroyServerGrabs, (XtPointer)pwi); (void) XSaveContext(dpy, - (Window)widget, + (Window)(((intptr_t)widget)&0xffffffff), perWidgetInputContext, (char *) pwi); } |