summaryrefslogtreecommitdiffstats
path: root/src/trie.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-16 11:29:34 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-16 11:29:34 -0400
commite49bf693efbe7ea54ac2c812c574cae1a09bbebf (patch)
tree848b4304597b63766263d7bc0ac9d39a03afbd13 /src/trie.c
parent72cd1c2a584d89e76a5e9e7deaf07ddc4196d1aa (diff)
downloadbfs-e49bf693efbe7ea54ac2c812c574cae1a09bbebf.tar.xz
trie: Use bfs_static_assert()
Diffstat (limited to 'src/trie.c')
-rw-r--r--src/trie.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/trie.c b/src/trie.c
index e0e00ff..5427d79 100644
--- a/src/trie.c
+++ b/src/trie.c
@@ -83,6 +83,7 @@
#include "trie.h"
#include "config.h"
+#include "diag.h"
#include "list.h"
#include <assert.h>
#include <limits.h>
@@ -90,7 +91,7 @@
#include <stdlib.h>
#include <string.h>
-static_assert(CHAR_BIT == 8, "This trie implementation assumes 8-bit bytes.");
+bfs_static_assert(CHAR_BIT == 8);
#if BFS_TARGET_CLONES && (__i386__ || __x86_64__)
# define TARGET_CLONES_POPCNT __attribute__((target_clones("popcnt", "default")))