]> mj.ucw.cz Git - libucw.git/blobdiff - lib/kmp-test.c
Cleaned up the fastbuf interfaces.
[libucw.git] / lib / kmp-test.c
index e245fcff0de8e8f9a184cee6aef7e5242955c5e9..fcbc96efcff40a7e3997205c76f7207c89611beb 100644 (file)
@@ -167,7 +167,7 @@ kmp4_eq(struct kmp4_struct *kmp UNUSED, byte *a, byte *b)
 static inline uns
 kmp4_hash(struct kmp4_struct *kmp UNUSED, struct kmp4_state *s, byte *c)
 {
-  return (c ? (*c << 16) : 0) + (uns)(addr_int_t)s;
+  return (c ? (*c << 16) : 0) + (uns)(uintptr_t)s;
 }
 
 #define KMP_PREFIX(x) kmp4_##x