From 717a7dbfde9da85d2a6b09443a0c2c2ba3bd7dbc Mon Sep 17 00:00:00 2001 From: Mickael Savinaud Date: Mon, 14 May 2012 17:25:10 +0000 Subject: [PATCH] resolve bug under win arch with test_tile_encoder.c --- tests/test_tile_encoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_tile_encoder.c b/tests/test_tile_encoder.c index db9d549f..2d8aa22b 100644 --- a/tests/test_tile_encoder.c +++ b/tests/test_tile_encoder.c @@ -93,6 +93,7 @@ int main (int argc, char *argv[]) opj_stream_t * l_stream; OPJ_UINT32 l_nb_tiles; OPJ_UINT32 l_data_size; + unsigned char len; #ifdef USING_MCT const OPJ_FLOAT32 l_mct [] = @@ -246,7 +247,7 @@ int main (int argc, char *argv[]) } // should we do j2k or jp2 ? - size_t len = strlen( output_file ); + len = strlen( output_file ); if( strcmp( output_file + len - 4, ".jp2" ) == 0 ) { l_codec = opj_create_compress_v2(CODEC_JP2);