for (unsigned i = 0; i < 4; ++i) {
printf("writing table %d\n", i);
for (unsigned j = 0; j < NUM_SYMS; ++j) {
- printf("%d,%d: %d\n", i, j, rans_dist->ransdist[i * 256 + j].first);
- write_varint(rans_dist->ransdist[i * 256 + j].first, codedfp);
+ printf("%d,%d: start=%d freq=%d\n", i, j, rans_dist->ransdist[i * 256 + j].first, rans_dist->ransdist[i * 256 + j].second);
+ write_varint(rans_dist->ransdist[i * 256 + j].second, codedfp);
}
}
}