aboutsummaryrefslogtreecommitdiff
path: root/src/libflate
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-06-07 23:25:39 +0000
committerrsc <devnull@localhost>2006-06-07 23:25:39 +0000
commit00c6cee80a371a38984a44945df40c4136173e81 (patch)
tree92675d95629ce194a05ab45a55f43f5eaaf85bc2 /src/libflate
parentbf136bc381ae920bd99a3026efedeb0ae6cd8cbc (diff)
downloadplan9port-00c6cee80a371a38984a44945df40c4136173e81.tar.gz
plan9port-00c6cee80a371a38984a44945df40c4136173e81.tar.bz2
plan9port-00c6cee80a371a38984a44945df40c4136173e81.zip
new 64-bit safe
Diffstat (limited to 'src/libflate')
-rw-r--r--src/libflate/deflate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libflate/deflate.c b/src/libflate/deflate.c
index 9e11af17..15a186af 100644
--- a/src/libflate/deflate.c
+++ b/src/libflate/deflate.c
@@ -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