projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: use condition's type to compute its hash
[lttng-tools.git]
/
src
/
common
/
hashtable
/
utils.c
diff --git
a/src/common/hashtable/utils.c
b/src/common/hashtable/utils.c
index c9d75e289a0cf6f4d39a85b3f98378ff717d6141..9a84265a0b324b587470c350abd9fc989476b8d7 100644
(file)
--- 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.
#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)
*/
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.
#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)
*/
LTTNG_HIDDEN
unsigned long hash_key_ulong(const void *_key, unsigned long seed)
This page took
0.024783 seconds
and
4
git commands to generate.