[Expletive deleted] Windows is LLP64, not LP64
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3997 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/jpeg/turbojpegl.c b/common/jpeg/turbojpegl.c
index 82acf23..68dd35d 100644
--- a/common/jpeg/turbojpegl.c
+++ b/common/jpeg/turbojpegl.c
@@ -188,7 +188,8 @@
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;