diff options
Diffstat (limited to 'src/Viewport.c')
-rw-r--r-- | src/Viewport.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Viewport.c b/src/Viewport.c index d8b1188..abb8961 100644 --- a/src/Viewport.c +++ b/src/Viewport.c @@ -57,6 +57,8 @@ SOFTWARE. #include <X11/Xaw3d/Scrollbar.h> #include <X11/Xaw3d/ViewportP.h> +#include <stdint.h> + static void ScrollUpDownProc(Widget, XtPointer, XtPointer); static void ThumbProc(Widget, XtPointer, XtPointer); static Boolean GetGeometry(Widget, Dimension, Dimension); @@ -863,7 +865,7 @@ ScrollUpDownProc(Widget widget, XtPointer closure, XtPointer call_data) { ViewportWidget w = (ViewportWidget)closure; Widget child = w->viewport.child; - int pix = (int)call_data; + int pix = (intptr_t) call_data; Position x, y; if (child == NULL) return; /* no child to scroll. */ |