Fix warning about hash type
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 19 Nov 2011 16:23:40 +0000 (11:23 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 19 Nov 2011 16:23:40 +0000 (11:23 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
hashtable/hash.c

index cee40e6ea20095ff6783fa52a2b3275b5c590cc8..12f76d834e0a12ba7269d0f80227b4f3985f093b 100644 (file)
@@ -454,9 +454,9 @@ unsigned long hash_key(void *_key, size_t length, unsigned long seed)
  */
 unsigned long hash_key(void *_key, size_t length, unsigned long seed)
 {
-       unsigned long key = (unsigned long) _key;
+       uint32_t key = (uint32_t) _key;
 
-       assert(length == sizeof(unsigned long));
+       assert(length == sizeof(uint32_t));
        return hashword(&key, 1, seed);
 }
 #endif
This page took 0.026151 seconds and 4 git commands to generate.