From: cristy Date: Sun, 21 Mar 2010 02:08:24 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9764 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ebc093dc1575d623473dc2d4264f1dabf7c00d0;p=imagemagick --- diff --git a/ChangeLog b/ChangeLog index 9f278dc9e..f1ba3da16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -2010-01-20 6.6.0-8 Glenn Randers-Pehrson +2010-03-20 6.6.0-8 Glenn Randers-Pehrson * Eliminated some of the deprecated direct references to members of the png_info structure. This must be finished before we can build with libpng-1.5. diff --git a/coders/psd.c b/coders/psd.c index b6e6a6b29..a9f9031b8 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -224,7 +224,7 @@ static MagickBooleanType DecodeImage(Image *image,const long channel) if (q == (PixelPacket *) NULL) break; indexes=GetAuthenticIndexQueue(image); - for (count=(-count+1); count > 0; count--) + for (i=(long) (-count+1); i > 0; i--) { switch (channel) { @@ -274,13 +274,13 @@ static MagickBooleanType DecodeImage(Image *image,const long channel) default: break; } - if (SyncAuthenticPixels(image,exception) == MagickFalse) - break; q++; indexes++; x++; number_pixels--; } + if (SyncAuthenticPixels(image,exception) == MagickFalse) + break; continue; } count++; @@ -340,13 +340,13 @@ static MagickBooleanType DecodeImage(Image *image,const long channel) default: break; } - if (SyncAuthenticPixels(image,exception) == MagickFalse) - break; q++; indexes++; x++; number_pixels--; } + if (SyncAuthenticPixels(image,exception) == MagickFalse) + break; } /* Guarentee the correct number of pixel packets.