64-bit safe

This commit is contained in:
rsc 2006-06-07 21:01:20 +00:00
parent d6316a2de0
commit 45f01abeec

View file

@ -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