urcu-ht: fix
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 30 Sep 2009 12:22:17 +0000 (08:22 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 30 Sep 2009 12:22:17 +0000 (08:22 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-ht.c

index 49262076d5c33c0964945dc0170fdaf4ab1d2cc9..0bbdb5d4e8284d28e8de006cb0ea5476eb9dc7f4 100644 (file)
--- 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;
This page took 0.025327 seconds and 4 git commands to generate.