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; }