From: Mathieu Desnoyers Date: Wed, 28 Sep 2011 17:46:23 +0000 (-0400) Subject: rculfhash test: fix 32-bit hash X-Git-Tag: v0.7.0~43^2~112 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=bda211266cd93d5d01adb4007c08f3bdf88a4047;p=urcu.git rculfhash test: fix 32-bit hash Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/test_urcu_hash.c b/tests/test_urcu_hash.c index 98227c2..cbbddc8 100644 --- a/tests/test_urcu_hash.c +++ b/tests/test_urcu_hash.c @@ -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