diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-03-06 21:04:08 -0800 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-03-06 21:04:08 -0800 |
commit | 8c9f8f472cc3b356d9fa6e10d77e2a409d106ab0 (patch) | |
tree | 171c3e68a343264a92ee6adeac5acf24d91f7570 | |
parent | eac589caf97daece0523e5e768765d584851f4ce (diff) | |
download | bfs-8c9f8f472cc3b356d9fa6e10d77e2a409d106ab0.tar.xz |
trie: Fix jump node offsets
-rw-r--r-- | trie.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |