gphoto2.ds: Avoid signed-unsigned integer comparisons
Andrew Talbot
andrew.talbot at talbotville.com
Thu Jan 24 16:10:35 CST 2013
Changelog:
gphoto2.ds: Avoid signed-unsigned integer comparisons.
diff --git a/dlls/gphoto2.ds/ds_image.c b/dlls/gphoto2.ds/ds_image.c
index 632ff66..cb3bbed 100644
--- a/dlls/gphoto2.ds/ds_image.c
+++ b/dlls/gphoto2.ds/ds_image.c
@@ -435,7 +435,8 @@ TW_UINT16 GPHOTO2_ImageNativeXferGet (pTW_IDENTITY pOrigin,
samprow = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,activeDS.jd.output_width*activeDS.jd.output_components);
oldsamprow = samprow;
while ( activeDS.jd.output_scanline<activeDS.jd.output_height ) {
- int i, x = pjpeg_read_scanlines(&activeDS.jd,&samprow,1);
+ unsigned int i;
+ int x = pjpeg_read_scanlines(&activeDS.jd,&samprow,1);
if (x != 1) {
FIXME("failed to read current scanline?\n");
break;
@@ -641,7 +642,8 @@ _get_gphoto2_file_as_DIB(
samprow = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,jd.output_width*jd.output_components);
oldsamprow = samprow;
while ( jd.output_scanline<jd.output_height ) {
- int i, x = pjpeg_read_scanlines(&jd,&samprow,1);
+ unsigned int i;
+ int x = pjpeg_read_scanlines(&jd,&samprow,1);
if (x != 1) {
FIXME("failed to read current scanline?\n");
break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130124/0ad5a2b4/attachment.html>
More information about the wine-patches
mailing list