- decode_tables[table].dsyms[(sym + 1) & 255].sym_start = cum_freq;
- decode_tables[table].dsyms[(sym + 1) & 255].sym_freq = *freq;
+ decode_tables[table].dsyms[(sym + 1) & (NUM_SYMS - 1)].sym_start = cum_freq;
+ decode_tables[table].dsyms[(sym + 1) & (NUM_SYMS - 1)].sym_freq = *freq;