]> wimlib.net Git - wimlib/blobdiff - src/decompress_common.c
Replace BUILD_BUG_ON() with STATIC_ASSERT()
[wimlib] / src / decompress_common.c
index c2f76955c17043f2b39dcab98d9fdb7a59e36f7b..a490882d8542cd230877f6405ff34988ba98b322 100644 (file)
@@ -281,7 +281,7 @@ make_huffman_decode_table(u16 decode_table[const],
                        aliased_word_t *p;
                        unsigned n;
 
-                       BUILD_BUG_ON(WORDSIZE != 4 && WORDSIZE != 8);
+                       STATIC_ASSERT(WORDSIZE == 4 || WORDSIZE == 8);
 
                        v = MAKE_DIRECT_ENTRY(sorted_syms[sym_idx], codeword_len);
                        v |= v << 16;