]> wimlib.net Git - wimlib/blobdiff - src/decompress_common.c
Avoid passing NULL as memcpy source (undefined behavior)
[wimlib] / src / decompress_common.c
index c2f76955c17043f2b39dcab98d9fdb7a59e36f7b..76fb1278ab0efed9cdd2ca8cffe2bd5ecd10d8b3 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;
@@ -377,7 +377,7 @@ make_huffman_decode_table(u16 decode_table[const],
                                 * of as simply the root of the tree.  The
                                 * representation of these internal nodes is
                                 * simply the index of the left child combined
-                                * with the special bits 0xC000 to distingush
+                                * with the special bits 0xC000 to distinguish
                                 * the entry from direct mapping and leaf node
                                 * entries.  */
                                do {