Module: wine Branch: master Commit: 0020c5f9dd788efced216b75f9f14f3034cdf574 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0020c5f9dd788efced216b75f9...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Thu Jan 24 22:10:35 2013 +0000
gphoto2.ds: Avoid signed-unsigned integer comparisons.
---
dlls/gphoto2.ds/ds_image.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
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;