rcuhash test: fix 32-bit type warning
[urcu.git] / tests / test_urcu_hash.c
index 98227c219abf11e9ea7aa667ecad4e98e65f8278..ffaec29f77e5fa2cde19b170c8fc58dc08d82477 100644 (file)
@@ -349,11 +349,10 @@ void hashword2(
 static
 unsigned long test_hash(void *_key, size_t length, unsigned long seed)
 {
-       unsigned long key = (unsigned long) _key;
-       unsigned long v;
+       unsigned int key = (unsigned int) _key;
 
-       assert(length == sizeof(unsigned long));
-       return hash_u32(&v, 1, seed);
+       assert(length == sizeof(unsigned int));
+       return hash_u32(&key, 1, seed);
 }
 #else
 static
This page took 0.023368 seconds and 4 git commands to generate.