Fix: use condition's type to compute its hash
[lttng-tools.git] / src / common / hashtable / utils.c
index c9d75e289a0cf6f4d39a85b3f98378ff717d6141..9a84265a0b324b587470c350abd9fc989476b8d7 100644 (file)
@@ -469,6 +469,7 @@ unsigned long hash_key_u64(const void *_key, unsigned long seed)
 #if (CAA_BITS_PER_LONG == 64)
 /*
  * Hash function for number value.
+ * Pass the value itself as the key, not its address.
  */
 LTTNG_HIDDEN
 unsigned long hash_key_ulong(const void *_key, unsigned long seed)
@@ -479,6 +480,7 @@ unsigned long hash_key_ulong(const void *_key, unsigned long seed)
 #else
 /*
  * Hash function for number value.
+ * Pass the value itself as the key, not its address.
  */
 LTTNG_HIDDEN
 unsigned long hash_key_ulong(const void *_key, unsigned long seed)
This page took 0.023146 seconds and 4 git commands to generate.