summaryrefslogtreecommitdiffstats
path: root/src/trie.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-30 14:15:31 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-30 14:15:31 -0400
commit407e6f57bfc05c51d32d4292218f0bdd8eeaa142 (patch)
treef62eace31dba64cdf36a83fc7bccf0c1fd5f9318 /src/trie.c
parent377b427491bcbf00e97fe02f69ef253e5ea3a53b (diff)
downloadbfs-407e6f57bfc05c51d32d4292218f0bdd8eeaa142.tar.xz
trie: Don't pass a bitfield directly to has_single_bit()
Diffstat (limited to 'src/trie.c')
-rw-r--r--src/trie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trie.c b/src/trie.c
index 7504d53..cc5db09 100644
--- a/src/trie.c
+++ b/src/trie.c
@@ -621,7 +621,7 @@ static void trie_free_singletons(struct trie *trie, uintptr_t ptr) {
struct trie_node *node = trie_decode_node(ptr);
// Make sure the bitmap is a power of two, i.e. it has just one child
- bfs_assert(has_single_bit(node->bitmap));
+ bfs_assert(has_single_bit((size_t)node->bitmap));
ptr = node->children[0];
trie_node_free(trie, node, 1);