]> mj.ucw.cz Git - libucw.git/blobdiff - lib/kmp.h
More bug fixes^W^Wimprovements to the timing statistics.
[libucw.git] / lib / kmp.h
index 67889a17e9e78c03ce30e5eee9f39935ad0ffac4..aa889f694d08b25209b71cc17970af7ad8144806 100644 (file)
--- a/lib/kmp.h
+++ b/lib/kmp.h
@@ -168,7 +168,7 @@ P(hash_hash) (struct P(hash_table) *t, struct P(state) *f, P(char_t) c)
 static inline uns
 P(hash_hash) (struct P(hash_table) *t UNUSED, struct P(state) *f, P(char_t) c)
 {
-  return (((uns)c) << 16) + (uns)(addr_int_t)f;
+  return (((uns)c) << 16) + (uns)(uintptr_t)f;
 }
 #endif