1.1 --- a/sourcehook/sh_memory.h Thu May 05 14:00:08 2005 +0000
1.2 +++ b/sourcehook/sh_memory.h Thu May 05 14:43:40 2005 +0000
1.3 @@ -34,8 +34,8 @@
1.4
1.5 // We need to align addr down to pagesize on linux
1.6 // We assume PAGESIZE is a power of two
1.7 -# define SH_LALIGN(x) (void*)((int)(x) & ~(PAGESIZE-1))
1.8 -# define SH_LALDIF(x) ((int)(x) & (PAGESIZE-1))
1.9 +# define SH_LALIGN(x) (void*)((intptr_t)(x) & ~(PAGESIZE-1))
1.10 +# define SH_LALDIF(x) ((intptr_t)(x) & (PAGESIZE-1))
1.11 # else
1.12 # error Unsupported OS/Compiler
1.13 # endif