summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/trie.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/trie.c b/src/trie.c
index caa38a7..08a99b5 100644
--- a/src/trie.c
+++ b/src/trie.c
@@ -103,9 +103,7 @@
#include <stdlib.h>
#include <string.h>
-#if CHAR_BIT != 8
-# error "This trie implementation assumes 8-bit bytes."
-#endif
+static_assert(CHAR_BIT == 8, "This trie implementation assumes 8-bit bytes.");
#if BFS_TARGET_CLONES && (__i386__ || __x86_64__)
# define TARGET_CLONES_POPCNT __attribute__((target_clones("popcnt", "default")))