]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 31 Mar 2011 20:16:11 +0000 (20:16 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 31 Mar 2011 20:16:11 +0000 (20:16 +0000)
coders/png.c

index 459a0cbc9da8910e9de46386663b6a6a0b78fd40..ac3ce4e3241f82bc26372b3f41f7f2fe732a504b 100644 (file)
@@ -1600,6 +1600,9 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
     length,
     row_offset;
 
+  ssize_t
+    j;
+
 #if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED)
   png_byte unused_chunks[]=
   {
@@ -2877,7 +2880,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
       (ping_color_type == PNG_COLOR_TYPE_GRAY_ALPHA))
     image->colorspace=GRAYColorspace;
 
-  for (int j = 0; j < 2; j++)
+  for (j = 0; j < 2; j++)
   {
     if (j == 0)
       status = (png_get_text(ping,ping_info,&text,&num_text) != 0);