rcuhash test: fix 32-bit type warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 5 Oct 2011 02:34:10 +0000 (22:34 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 5 Oct 2011 02:34:10 +0000 (22:34 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_urcu_hash.c

index cbbddc8c8cef72d9d59a1ee08f1b6e970748bd69..ffaec29f77e5fa2cde19b170c8fc58dc08d82477 100644 (file)
@@ -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
This page took 0.025953 seconds and 4 git commands to generate.