From: DRC Date: Sat, 27 Jun 2015 08:10:32 +0000 (+0000) Subject: Fix compiler warnings in jpeg_skip_scanlines() when building under Visual Studio. X-Git-Tag: 1.4.90~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=162c9985d6d4860d577c68be34f37a5c2c5a8717;p=libjpeg-turbo Fix compiler warnings in jpeg_skip_scanlines() when building under Visual Studio. git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1588 632fc199-4ca6-4c93-a231-07263d6284db --- diff --git a/jdapistd.c b/jdapistd.c index 413cb82..d34335f 100644 --- a/jdapistd.c +++ b/jdapistd.c @@ -205,8 +205,7 @@ dummy_buffer_setup (j_decompress_ptr cinfo) LOCAL(void) increment_simple_rowgroup_ctr (j_decompress_ptr cinfo, JDIMENSION rows) { - int i; - JDIMENSION rows_left; + JDIMENSION i, rows_left; my_main_ptr main_ptr = (my_main_ptr) cinfo->main; /* Increment the counter to the next row group after the skipped rows. */ @@ -240,7 +239,8 @@ jpeg_skip_scanlines (j_decompress_ptr cinfo, JDIMENSION num_lines) my_main_ptr main_ptr = (my_main_ptr) cinfo->main; my_coef_ptr coef = (my_coef_ptr) cinfo->coef; my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; - int i, y, x; + JDIMENSION i, x; + int y; JDIMENSION lines_per_iMCU_row, lines_left_in_iMCU_row, lines_after_iMCU_row; JDIMENSION lines_to_skip, lines_to_read;