X-Git-Url: https://git.sesse.net/?p=fjl;a=blobdiff_plain;f=input_test.c;h=57fae748621cfc5d2d4e0c87f1fe529773a91201;hp=3ff7ba097d657e4bab7100ea657b6702dc56d53d;hb=f6111465adacc2840f4cd25d55b3017cbf0593b2;hpb=30860bda5fd2474a3b45b05f6b89dcf7230a75a8 diff --git a/input_test.c b/input_test.c index 3ff7ba0..57fae74 100644 --- a/input_test.c +++ b/input_test.c @@ -42,7 +42,7 @@ void test_basic_reading() 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); @@ -62,7 +62,7 @@ void test_slow_source() 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);