Hide a warning. Since 1.5 is not large file safe (>32bits) this should be ok
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 16 Dec 2011 10:43:10 +0000 (10:43 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 16 Dec 2011 10:43:10 +0000 (10:43 +0000)
applications/codec/image_to_j2k.c

index dd8425dbf2ffa564cb6a95a7e01fd1fa74fa8495..cbdc1e6009d5725be28aad6aac0b601b797fdc35 100644 (file)
@@ -1717,7 +1717,7 @@ int main(int argc, char **argv) {
                                        return 1;
                                }
                                res = fwrite(cio->buffer, 1, codestream_length, f);
-        if( res < codestream_length ) {
+        if( res < (size_t)codestream_length ) { /* FIXME */
                                        fprintf(stderr, "failed to write %d (%s)\n", codestream_length, parameters.outfile);
                                        return 1;
          }
@@ -1778,7 +1778,7 @@ int main(int argc, char **argv) {
                                        return 1;
                                }
                                res = fwrite(cio->buffer, 1, codestream_length, f);
-        if( res < codestream_length ) {
+        if( res < (size_t)codestream_length ) { /* FIXME */
                                        fprintf(stderr, "failed to write %d (%s)\n", codestream_length, parameters.outfile);
                                        return 1;
          }