From: Mathieu Desnoyers Date: Wed, 5 Oct 2011 02:34:10 +0000 (-0400) Subject: rcuhash test: fix 32-bit type warning X-Git-Tag: v0.7.0~43^2~100 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f542a7ee9fcab5b6de55cb08d26176deb294b1a3;p=urcu.git rcuhash test: fix 32-bit type warning Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/test_urcu_hash.c b/tests/test_urcu_hash.c index cbbddc8..ffaec29 100644 --- a/tests/test_urcu_hash.c +++ b/tests/test_urcu_hash.c @@ -349,9 +349,9 @@ void hashword2( static unsigned long test_hash(void *_key, size_t length, unsigned long seed) { - unsigned long key = (unsigned long) _key; + unsigned int key = (unsigned int) _key; - assert(length == sizeof(unsigned long)); + assert(length == sizeof(unsigned int)); return hash_u32(&key, 1, seed); } #else