From: Mathieu Desnoyers Date: Sat, 19 Nov 2011 16:23:40 +0000 (-0500) Subject: Fix warning about hash type X-Git-Tag: v2.0-pre15~99 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8da9ba32e8e815bf83113f8785c3f51e74593ad9;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