diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-05-16 11:29:34 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-05-16 11:29:34 -0400 |
commit | e49bf693efbe7ea54ac2c812c574cae1a09bbebf (patch) | |
tree | 848b4304597b63766263d7bc0ac9d39a03afbd13 /src/trie.c | |
parent | 72cd1c2a584d89e76a5e9e7deaf07ddc4196d1aa (diff) | |
download | bfs-e49bf693efbe7ea54ac2c812c574cae1a09bbebf.tar.xz |
trie: Use bfs_static_assert()
Diffstat (limited to 'src/trie.c')
-rw-r--r-- | src/trie.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"))) |