X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fhashtable%2Futils.c;fp=src%2Fcommon%2Fhashtable%2Futils.c;h=9a84265a0b324b587470c350abd9fc989476b8d7;hp=c9d75e289a0cf6f4d39a85b3f98378ff717d6141;hb=9a2746aaa1cddad6737cbba2bcae739cb3b84617;hpb=9b63a4aa352c184984395c097f86d5e54c295012 diff --git a/src/common/hashtable/utils.c b/src/common/hashtable/utils.c index c9d75e289..9a84265a0 100644 --- a/src/common/hashtable/utils.c +++ b/src/common/hashtable/utils.c @@ -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)