git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b1b81e
)
Tweak a define.
author
Wayne Davison
<wayne@opencoder.net>
Wed, 14 Sep 2022 14:13:24 +0000
(07:13 -0700)
committer
Wayne Davison
<wayne@opencoder.net>
Wed, 14 Sep 2022 14:13:24 +0000
(07:13 -0700)
hashtable.c
patch
|
blob
|
history
diff --git
a/hashtable.c
b/hashtable.c
index 04543f60cbfacef85ed6f24d90964aa5b0da6a33..f7a8a6c9c9c26e4bba126ec3d670ab5f678ed60c 100644
(file)
--- a/
hashtable.c
+++ b/
hashtable.c
@@
-351,7
+351,7
@@
void *hashtable_find(struct hashtable *tbl, int64 key, void *data_when_new)
*/
#define NON_ZERO_32(x) ((x) ? (x) : (uint32_t)1)
-#define NON_ZERO_64(x, y) ((x) || (y) ? (
(int64)(x) << 32)
| (y) : (int64)1)
+#define NON_ZERO_64(x, y) ((x) || (y) ? (
y) | (int64)(x) << 32
| (y) : (int64)1)
uint32_t hashlittle(const void *key, size_t length)
{