summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-03-06 21:04:08 -0800
committerTavian Barnes <tavianator@tavianator.com>2019-03-06 21:04:08 -0800
commit8c9f8f472cc3b356d9fa6e10d77e2a409d106ab0 (patch)
tree171c3e68a343264a92ee6adeac5acf24d91f7570
parenteac589caf97daece0523e5e768765d584851f4ce (diff)
downloadbfs-8c9f8f472cc3b356d9fa6e10d77e2a409d106ab0.tar.xz
trie: Fix jump node offsets
-rw-r--r--trie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trie.c b/trie.c
index c38ad2c..ff0e7be 100644
--- a/trie.c
+++ b/trie.c
@@ -452,7 +452,7 @@ static uintptr_t *trie_jump(uintptr_t *ptr, const char *key, size_t *offset) {
}
*offset += OFFSET_MAX;
- node->offset = *offset;
+ node->offset = OFFSET_MAX;
unsigned char nibble = trie_key_nibble(key, *offset);
node->bitmap = 1 << nibble;