commit 6251e8f3df0620160445356901b9342a2aed55dd
parent 3f7bfc7e6684f5fc2563f96e6ba19a4b43dd016c
Author: Remy Noulin <loader2x@gmail.com>
Date: Sun, 20 Mar 2022 21:52:51 +0200
bugfix: in addOrFindNode don't update context.node.hash since the context is not initialized
hashtable.h | 1 -
1 file changed, 1 deletion(-)
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/hashtable.h b/hashtable.h
@@ -976,7 +976,6 @@ u32 ilog2Hashtable(u32 value);
}\
const typeof((name).node.hash) UNIQVAR(hash) = hashFunc(k);\
const u32 UNIQVAR(mhash) = UNIQVAR(hash) & (name).szMask;\
- (nodeContext).node->hash = UNIQVAR(hash);\
typeof((name).node) *UNIQVAR(node) = (*(name).list)[UNIQVAR(mhash)][0];\
typeof((name).node) *UNIQVAR(prev) = NULL;\
u8 UNIQVAR(moreOrLess) = 0;\