From b02715c1b10ea18555ad5a61b5183c4b71d43044 Mon Sep 17 00:00:00 2001 From: DRC Date: Wed, 2 Mar 2011 01:27:26 +0000 Subject: [PATCH] Fix compiler warnings in Visual C++ --- turbojpegl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/turbojpegl.c b/turbojpegl.c index c2f776f7..4ae41b7c 100644 --- a/turbojpegl.c +++ b/turbojpegl.c @@ -618,7 +618,7 @@ DLLEXPORT int DLLCALL tjDecompress(tjhandle h, if(flags&TJ_YUV) { j_decompress_ptr dinfo=&j->dinfo; - for(row=0; rowoutput_height; + for(row=0; row<(int)dinfo->output_height; row+=dinfo->max_v_samp_factor*DCTSIZE) { JSAMPARRAY yuvptr[MAX_COMPONENTS]; @@ -650,7 +650,7 @@ DLLEXPORT int DLLCALL tjDecompress(tjhandle h, if((row_pointer=(JSAMPROW *)malloc(sizeof(JSAMPROW) *j->dinfo.output_height))==NULL) _throw("Memory allocation failed in tjInitDecompress()"); - for(i=0; idinfo.output_height; i++) + for(i=0; i<(int)j->dinfo.output_height; i++) { if(flags&TJ_BOTTOMUP) row_pointer[i]= &dstbuf[(j->dinfo.output_height-i-1)*pitch];