tnew 64-bit safe - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 00c6cee80a371a38984a44945df40c4136173e81
parent bf136bc381ae920bd99a3026efedeb0ae6cd8cbc
Author: rsc 
Date:   Wed,  7 Jun 2006 23:25:39 +0000

new 64-bit safe

Diffstat:
  M src/libflate/deflate.c              |       4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libflate/deflate.c b/src/libflate/deflate.c
t@@ -80,9 +80,9 @@ enum
  * and might be faster on some machines
  */
 /*
-#define hashit(c)        (((ulong)(c) * 0x6b43a9) >> (24 - HashLog))
+#define hashit(c)        ((u32int)((c) * 0x6b43a9) >> (24 - HashLog))
 */
-#define hashit(c)        (((((ulong)(c) & 0xffffff) * 0x6b43a9b5) >> (32 - HashLog)) & 0xFFFFFFFF)
+#define hashit(c)        ((u32int)(((c) & 0xffffff) * 0x6b43a9b5) >> (32 - HashLog))
 
 /*
  * lempel-ziv style compression state