X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fhashtable%2Futils.c;h=9a84265a0b324b587470c350abd9fc989476b8d7;hb=3a735fa767e8cd922c638a25e93876e37f7f66b1;hp=c9d75e289a0cf6f4d39a85b3f98378ff717d6141;hpb=bcd52dd90f07cc4cf4eebf32761568a2c03c540a;p=lttng-tools.git 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)