summaryrefslogtreecommitdiff
path: root/lib/hash.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-05-12 21:47:29 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-05-12 21:47:29 +0200
commit659f80f262a83d600d5f095fb8a03e912d3fbe64 (patch)
tree08c8b520d1d84f3ff0f74b22133b9b83762248b2 /lib/hash.h
parent776d6b2c05fe8b14e5ec357eca24fe59c549bfa4 (diff)
Make int-new compilable again
Diffstat (limited to 'lib/hash.h')
-rw-r--r--lib/hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hash.h b/lib/hash.h
index b86a2eb1..04a16a7e 100644
--- a/lib/hash.h
+++ b/lib/hash.h
@@ -178,7 +178,7 @@
#define HASH_WALK_FILTER_END } while (0)
-typedef mem_hash_t u64;
+typedef u64 mem_hash_t;
static inline void
mem_hash_init(mem_hash_t *h)
@@ -199,7 +199,7 @@ mem_hash_mix(mem_hash_t *h, void *p, int s)
static inline uint
mem_hash_value(mem_hash_t *h)
{
- return ((value >> 32) ^ (value & 0xffffffff));
+ return ((*h >> 32) ^ (*h & 0xffffffff));
}
static inline uint