]> wimlib.net Git - wimlib/blobdiff - include/wimlib/decompress_common.h
Replace BUILD_BUG_ON() with STATIC_ASSERT()
[wimlib] / include / wimlib / decompress_common.h
index 70f7dd5a8f4ed508b636ce028105e018f0c81801..5d7c4e5abb441ce5e3fe625869c673d1a4b4b234 100644 (file)
@@ -261,7 +261,7 @@ repeat_byte(u8 b)
 {
        machine_word_t v;
 
-       BUILD_BUG_ON(WORDSIZE != 4 && WORDSIZE != 8);
+       STATIC_ASSERT(WORDSIZE == 4 || WORDSIZE == 8);
 
        v = b;
        v |= v << 8;