Menu

#16 does not compile on 64bit archs

open
nobody
None
5
2006-03-26
2006-03-26
Anonymous
No

Hi,

SCOURGE fails to compile on 64bit archs (amd64 in my
case) because of the wrong assumption about the size
of pointer types. You should use unsigned long
(64bits) instead of unsigned int (32bits) for SQHash.
Please apply the following path:

--- scourge-0.13.old/src/squirrel/squirrel.h
2005-10-18 19:19:46.000000000 +0300
+++ scourge-0.13/src/squirrel/squirrel.h
2006-03-26 14:11:13.000000000 +0300
@@ -44,7 +44,7 @@
typedef int SQInt32; //must be 32 bits(also on
64bits processors)
typedef void* SQUserPointer;
typedef unsigned int SQUnsignedInteger;
-typedef unsigned int SQHash; //should be the same
size of a pointer
+typedef unsigned long SQHash; //should be the same
size of a pointer
typedef SQUnsignedInteger SQBool;
typedef SQInteger SQRESULT;

My system:
Debian unstable on amd64. Kernel: 2.6.16
gcc-4.0.3

Discussion


Log in to post a comment.