aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2013-01-18 23:45:06 +0000
committerdcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2013-01-18 23:45:06 +0000
commit88994d5854714f09344e2d84e440cd3ab6c09693 (patch)
tree5056b4303ed0981615dab9a8aa8ae2da2e637a55
parentbebb38d3efdeba0f1893c0c3bf74212873b977d8 (diff)
Compiler warnings on Windows
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@914 632fc199-4ca6-4c93-a231-07263d6284db
-rw-r--r--djpeg.c2
-rw-r--r--jdatadst.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/djpeg.c b/djpeg.c
index 9cfaad0..72d906e 100644
--- a/djpeg.c
+++ b/djpeg.c
@@ -573,7 +573,7 @@ main (int argc, char **argv)
else
fprintf(stderr, "%s: can't read from stdin\n", progname);
}
- insize += nbytes;
+ insize += (unsigned long)nbytes;
} while (nbytes == INPUT_BUF_SIZE);
fprintf(stderr, "Compressed size: %lu bytes\n", insize);
jpeg_mem_src(&cinfo, inbuffer, insize);
diff --git a/jdatadst.c b/jdatadst.c
index ff87ecd..b3fdd3e 100644
--- a/jdatadst.c
+++ b/jdatadst.c
@@ -191,7 +191,7 @@ term_mem_destination (j_compress_ptr cinfo)
my_mem_dest_ptr dest = (my_mem_dest_ptr) cinfo->dest;
*dest->outbuffer = dest->buffer;
- *dest->outsize = dest->bufsize - dest->pub.free_in_buffer;
+ *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer);
}
#endif