summaryrefslogtreecommitdiff
path: root/trunk/turbojpegl.c
diff options
context:
space:
mode:
authordcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-02-26 23:01:19 +0000
committerdcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-02-26 23:01:19 +0000
commit8d4fce78704504b9aa007f98686dd35671375b39 (patch)
tree73eb225ec765e4b8c71da90393d872bd22fa1c35 /trunk/turbojpegl.c
parent448694b9239d181fe2113a3c85e5d1e15d21d037 (diff)
Bleepin' Windows uses LLP64, not LP64
git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@158 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'trunk/turbojpegl.c')
-rw-r--r--trunk/turbojpegl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/trunk/turbojpegl.c b/trunk/turbojpegl.c
index f5f0db1..2150a2d 100644
--- a/trunk/turbojpegl.c
+++ b/trunk/turbojpegl.c
@@ -192,7 +192,8 @@ DLLEXPORT int DLLCALL tjCompress(tjhandle h,
j->cinfo.image_height-j->cinfo.next_scanline);
}
jpeg_finish_compress(&j->cinfo);
- *size=TJBUFSIZE(j->cinfo.image_width, j->cinfo.image_height)-(j->jdms.free_in_buffer);
+ *size=TJBUFSIZE(j->cinfo.image_width, j->cinfo.image_height)
+ -(unsigned long)(j->jdms.free_in_buffer);
if(row_pointer) free(row_pointer);
return 0;