From: Mathieu Desnoyers Date: Sat, 19 Nov 2011 16:23:40 +0000 (-0500) Subject: Fix warning about hash type X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;ds=sidebyside;h=8da9ba32e8e815bf83113f8785c3f51e74593ad9;hp=0df502fd9da4e1895e1f3719afc51c8edd710c9e;p=lttng-tools.git Fix warning about hash type Signed-off-by: Mathieu Desnoyers --- diff --git a/hashtable/hash.c b/hashtable/hash.c index cee40e6ea..12f76d834 100644 --- a/hashtable/hash.c +++ b/hashtable/hash.c @@ -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