diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-30 14:15:31 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-05-30 14:15:31 -0400 |
commit | 407e6f57bfc05c51d32d4292218f0bdd8eeaa142 (patch) | |
tree | f62eace31dba64cdf36a83fc7bccf0c1fd5f9318 | |
parent | 377b427491bcbf00e97fe02f69ef253e5ea3a53b (diff) | |
download | bfs-407e6f57bfc05c51d32d4292218f0bdd8eeaa142.tar.xz |
trie: Don't pass a bitfield directly to has_single_bit()
-rw-r--r-- | src/trie.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |