diff options
author | rsc <devnull@localhost> | 2006-06-07 21:01:20 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-06-07 21:01:20 +0000 |
commit | 45f01abeec7b0d1cca3f83663bc0a61160809f56 (patch) | |
tree | 825576e14a2e2d0d789c1526515e06fb1af7cf90 /src | |
parent | d6316a2de0bc01178f6ca3ddfb064fc19697c5ff (diff) | |
download | plan9port-45f01abeec7b0d1cca3f83663bc0a61160809f56.tar.gz plan9port-45f01abeec7b0d1cca3f83663bc0a61160809f56.tar.bz2 plan9port-45f01abeec7b0d1cca3f83663bc0a61160809f56.zip |
64-bit safe
Diffstat (limited to 'src')
-rw-r--r-- | src/libflate/deflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libflate/deflate.c b/src/libflate/deflate.c index 3f5b69a6..9e11af17 100644 --- a/src/libflate/deflate.c +++ b/src/libflate/deflate.c @@ -82,7 +82,7 @@ enum /* #define hashit(c) (((ulong)(c) * 0x6b43a9) >> (24 - HashLog)) */ -#define hashit(c) ((((ulong)(c) & 0xffffff) * 0x6b43a9b5) >> (32 - HashLog)) +#define hashit(c) (((((ulong)(c) & 0xffffff) * 0x6b43a9b5) >> (32 - HashLog)) & 0xFFFFFFFF) /* * lempel-ziv style compression state |