gphoto2.ds: Avoid signed-unsigned integer comparisons.

This commit is contained in:
Andrew Talbot 2013-01-24 22:10:35 +00:00 committed by Alexandre Julliard
parent 2e268d1914
commit 0020c5f9dd

View file

@ -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); samprow = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,activeDS.jd.output_width*activeDS.jd.output_components);
oldsamprow = samprow; oldsamprow = samprow;
while ( activeDS.jd.output_scanline<activeDS.jd.output_height ) { 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) { if (x != 1) {
FIXME("failed to read current scanline?\n"); FIXME("failed to read current scanline?\n");
break; break;
@ -641,7 +642,8 @@ _get_gphoto2_file_as_DIB(
samprow = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,jd.output_width*jd.output_components); samprow = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,jd.output_width*jd.output_components);
oldsamprow = samprow; oldsamprow = samprow;
while ( jd.output_scanline<jd.output_height ) { 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) { if (x != 1) {
FIXME("failed to read current scanline?\n"); FIXME("failed to read current scanline?\n");
break; break;