rculfhash test: fix 32-bit hash
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Sep 2011 17:46:23 +0000 (13:46 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Sep 2011 17:46:23 +0000 (13:46 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_urcu_hash.c

index 98227c219abf11e9ea7aa667ecad4e98e65f8278..cbbddc8c8cef72d9d59a1ee08f1b6e970748bd69 100644 (file)
@@ -350,10 +350,9 @@ static
 unsigned long test_hash(void *_key, size_t length, unsigned long seed)
 {
        unsigned long key = (unsigned long) _key;
-       unsigned long v;
 
        assert(length == sizeof(unsigned long));
-       return hash_u32(&v, 1, seed);
+       return hash_u32(&key, 1, seed);
 }
 #else
 static
This page took 0.033295 seconds and 4 git commands to generate.