aboutsummaryrefslogtreecommitdiff
path: root/libXaw/src/Pixmap.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-12-21 14:53:11 +0100
committermarha <marha@users.sourceforge.net>2013-12-21 14:53:11 +0100
commit90077a910e62ec55bc1e5a98f5946754c9c5f8bd (patch)
treea480babd4a7c61d52edc2cc555b5d20eab69f737 /libXaw/src/Pixmap.c
parent52cd3051ba15ddda117f8d8cae1979cd3c86f5b6 (diff)
downloadvcxsrv-90077a910e62ec55bc1e5a98f5946754c9c5f8bd.tar.gz
vcxsrv-90077a910e62ec55bc1e5a98f5946754c9c5f8bd.tar.bz2
vcxsrv-90077a910e62ec55bc1e5a98f5946754c9c5f8bd.zip
Solved 64-bit run-time problems
Diffstat (limited to 'libXaw/src/Pixmap.c')
-rw-r--r--libXaw/src/Pixmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libXaw/src/Pixmap.c b/libXaw/src/Pixmap.c
index 1c5a8c5ed..0741b052f 100644
--- a/libXaw/src/Pixmap.c
+++ b/libXaw/src/Pixmap.c
@@ -47,7 +47,7 @@
* Types
*/
typedef struct _XawCache {
- long value;
+ intptr_t value;
XtPointer *elems;
unsigned int num_elems;
} XawCache;
@@ -415,7 +415,7 @@ qcmp_string(register _Xconst void *left, register _Xconst void *right)
static int
bcmp_long(register _Xconst void *value, register _Xconst void *cache)
{
- return ((long)value - (long)((*(XawCache **)cache)->value));
+ return ((intptr_t)value - (intptr_t)((*(XawCache **)cache)->value));
}
static int
@@ -492,7 +492,7 @@ _XawGetCache(XawCache *xaw, Screen *screen, Colormap colormap, int depth)
XtRealloc((char *)xaw->elems,
sizeof(XtPointer) * xaw->num_elems);
}
- pcache->value = (long)screen;
+ pcache->value = (intptr_t)screen;
pcache->elems = NULL;
pcache->num_elems = 0;
xaw->elems[xaw->num_elems - 1] = (XtPointer)pcache;