X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=input_test.c;h=57fae748621cfc5d2d4e0c87f1fe529773a91201;hb=cc0c0e56d8269e91f23739b57faf67d5b5cc0794;hp=3ff7ba097d657e4bab7100ea657b6702dc56d53d;hpb=30860bda5fd2474a3b45b05f6b89dcf7230a75a8;p=fjl 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);