summaryrefslogtreecommitdiffstats
path: root/src/trie.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-05-26 10:26:12 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-05-26 10:45:45 -0400
commit89969b4b0bea3bd4cddf97c989ca63f3a1aaa07c (patch)
tree58a244a7121a0000313b2044c139df2340e72ee1 /src/trie.c
parent6fa72ff42d95dfd883d59ce7cf6bdc74abebf015 (diff)
downloadbfs-89969b4b0bea3bd4cddf97c989ca63f3a1aaa07c.tar.xz
Add support for __attribute__((counted_by(...)))
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 4e0944a..6aac17f 100644
--- a/src/trie.c
+++ b/src/trie.c
@@ -129,7 +129,7 @@ struct trie_node {
* tag to distinguish internal nodes from leaves. This is safe as long
* as all dynamic allocations are aligned to more than a single byte.
*/
- uintptr_t children[];
+ uintptr_t children[]; // _counted_by(count_ones(bitmap))
};
/** Check if an encoded pointer is to an internal node. */