X-Git-Url: https://git.sesse.net/?p=fjl;a=blobdiff_plain;f=input.c;h=6c4630f075a4fee47751a149752ac415d10f7d6d;hp=7db6e1e3ae7ae7b569044ad450ab7295482edb1b;hb=f6111465adacc2840f4cd25d55b3017cbf0593b2;hpb=4ccaf2a2ac9f78dcaaa1ba4a093b1ece3f915c94 diff --git a/input.c b/input.c index 7db6e1e..6c4630f 100644 --- a/input.c +++ b/input.c @@ -28,7 +28,7 @@ void possibly_refill_slow_path(struct bit_source* source, unsigned num_bits) (*source->input_func)(source->userdata, source->bytes + source->bytes_available, bytes_to_read); - assert(bytes_read <= bytes_to_read); + assert(bytes_read <= (ssize_t)bytes_to_read); assert(bytes_read >= (ssize_t)-1); // TODO: We need better error handling here. setjmp()/longjmp()