Fix a warning.
authorSteinar H. Gunderson <sesse@debian.org>
Sat, 3 Jan 2009 10:26:24 +0000 (11:26 +0100)
committerSteinar H. Gunderson <sesse@debian.org>
Sat, 3 Jan 2009 10:26:24 +0000 (11:26 +0100)
bytesource.c

index 4ebe79c..65d5a44 100644 (file)
@@ -47,7 +47,7 @@ ssize_t byte_source_input_func(void* source, uint8_t* buf, size_t len)
                                              src->bytes + src->bytes_available,
                                              bytes_to_read);
                assert(bytes_read >= -1);
-               assert(bytes_read <= bytes_to_read);
+               assert(bytes_read <= (ssize_t)bytes_to_read);
                
                if (bytes_read == -1) {
                        return -1;