summaryrefslogtreecommitdiffstats
path: root/src/trie.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-27 15:59:57 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-28 17:33:20 -0400
commit386fc8817e637fdd52c20e4ace6cc4ea1f1186ed (patch)
treee9ff160e7e5cd21f4ee72b2822e33a921acb726f /src/trie.c
parenta37a564b66b363cc509cc5cdd16fd65b7950b0be (diff)
downloadbfs-386fc8817e637fdd52c20e4ace6cc4ea1f1186ed.tar.xz
diag: Get rid of bfs_static_assert()
In most cases, it's not too annoying to specify a message. For tests/bit.c, we can manually polyfill the 1-argument version.
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 e1c9f26..1c4ac77 100644
--- a/src/trie.c
+++ b/src/trie.c
@@ -90,7 +90,7 @@
#include <stdint.h>
#include <string.h>
-bfs_static_assert(CHAR_WIDTH == 8);
+static_assert(CHAR_WIDTH == 8, "This trie implementation assumes 8-bit bytes.");
#if __i386__ || __x86_64__
# define _trie_clones _target_clones("popcnt", "default")