summaryrefslogtreecommitdiff
path: root/jpeg/jdatadst.c
diff options
context:
space:
mode:
Diffstat (limited to 'jpeg/jdatadst.c')
-rw-r--r--jpeg/jdatadst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jpeg/jdatadst.c b/jpeg/jdatadst.c
index 472d5f324..e58fe6616 100644
--- a/jpeg/jdatadst.c
+++ b/jpeg/jdatadst.c
@@ -182,7 +182,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);
}