From: Mathieu Desnoyers Date: Wed, 30 Sep 2009 12:22:17 +0000 (-0400) Subject: urcu-ht: fix X-Git-Tag: v0.7.0~43^2~242 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0eb566f42f9694c397afd96a469e1d89af8a4ff5;p=userspace-rcu.git urcu-ht: fix Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-ht.c b/urcu-ht.c index 4926207..0bbdb5d 100644 --- a/urcu-ht.c +++ b/urcu-ht.c @@ -269,7 +269,7 @@ uint32_t ht_jhash(void *key, uint32_t length, uint32_t initval) uint32_t ret; void *vkey; - if (length <= sizeof(u32)) + if (length <= sizeof(void *)) vkey = &key; else vkey = key;