diff options
author | marha <marha@users.sourceforge.net> | 2013-07-26 17:40:44 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-07-26 17:40:44 +0200 |
commit | ff986553659472cf191804eadb13c21e8f2b44c0 (patch) | |
tree | 70a2a53fc9450771e6369e0789304939d0c6f701 /libXt/src | |
parent | 78d1e1787d6a2ecc3ad765bd1689a600e44ed13b (diff) | |
download | vcxsrv-ff986553659472cf191804eadb13c21e8f2b44c0.tar.gz vcxsrv-ff986553659472cf191804eadb13c21e8f2b44c0.tar.bz2 vcxsrv-ff986553659472cf191804eadb13c21e8f2b44c0.zip |
Solved runtime problems when compiled for 64-bit1.14.2.1
Diffstat (limited to 'libXt/src')
-rw-r--r-- | libXt/src/Convert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libXt/src/Convert.c b/libXt/src/Convert.c index cea8fd3ed..f8dc4016e 100644 --- a/libXt/src/Convert.c +++ b/libXt/src/Convert.c @@ -640,7 +640,7 @@ void XtDirectConvert( LOCK_PROCESS; /* Try to find cache entry for conversion */ - hash = ((long) converter >> 2) + from->size + *((char *) from->addr); + hash = (long)((( ((long)((intptr_t)converter&0xffffffff)) >> 2) + from->size + *((char *) from->addr))&0xffffffff); if (from->size > 1) hash += ((char *) from->addr)[1]; for (p = cacheHashTable[hash & CACHEHASHMASK]; p; p = p->next) { @@ -737,7 +737,7 @@ CallConverter( LOCK_PROCESS; /* Try to find cache entry for conversion */ - hash = ((long)(converter) >> 2) + from->size + *((char *) from->addr); + hash = (long)(((((long)( (intptr_t)converter&0xffffffff)) >> 2) + from->size + *((char *) from->addr))&0xffffffff); if (from->size > 1) hash += ((char *) from->addr)[1]; if (cP->cache_type != XtCacheNone) { |