struct bit_source source;
init_bit_source(&source, custom_read, &ud);
- for (int i = 0; i < sizeof(bytes) * 8 / 6; ++i) {
+ for (unsigned i = 0; i < sizeof(bytes) * 8 / 6; ++i) {
possibly_refill(&source, 6);
unsigned ret = read_bits(&source, 6);
assert(ret == 0x2a);
struct bit_source source;
init_bit_source(&source, custom_read_slow, &ud);
- for (int i = 0; i < sizeof(bytes) * 8 / 6; ++i) {
+ for (unsigned i = 0; i < sizeof(bytes) * 8 / 6; ++i) {
possibly_refill(&source, 6);
unsigned ret = read_bits(&source, 6);
assert(ret == 0x2a);