From 594148ae8383ec058d0db1087db4eefe7a150b6f Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Fri, 16 Dec 2011 10:43:10 +0000 Subject: [PATCH] Hide a warning. Since 1.5 is not large file safe (>32bits) this should be ok --- applications/codec/image_to_j2k.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/codec/image_to_j2k.c b/applications/codec/image_to_j2k.c index dd8425db..cbdc1e60 100644 --- a/applications/codec/image_to_j2k.c +++ b/applications/codec/image_to_j2k.c @@ -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; }