for (unsigned elem = prefix_min; elem < prefix_max; ++elem) {
assert(tbl->lookup_table_codes[elem] == DEHUF_SLOW_PATH);
assert(tbl->lookup_table_length[elem] == DEHUF_SLOW_PATH);
- tbl->lookup_table_codes[elem] = k;
+ tbl->lookup_table_codes[elem] = tbl->codes[k];
tbl->lookup_table_length[elem] = length;
}
}