new 64-bit safe
diff --git a/src/libflate/deflate.c b/src/libflate/deflate.c
index 9e11af1..15a186a 100644
--- a/src/libflate/deflate.c
+++ b/src/libflate/deflate.c
@@ -80,9 +80,9 @@
* 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