From: Dirk Lemstra Date: Sun, 30 Apr 2017 12:13:06 +0000 (+0200) Subject: Fix build for older versions of VisualStudio. X-Git-Tag: 7.0.5-6~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aaa119d6e2c09facf237132b5a186a8d6dc6efb9;p=imagemagick Fix build for older versions of VisualStudio. --- diff --git a/MagickCore/identify.c b/MagickCore/identify.c index 1745fa82b..0b0a79c02 100644 --- a/MagickCore/identify.c +++ b/MagickCore/identify.c @@ -404,13 +404,19 @@ static ssize_t PrintChannelPerceptualHash(Image *image,FILE *file, n=0; for (i=0; i < (ssize_t) GetPixelChannels(image); i++) { + PixelChannel + channel; + + PixelTrait + traits; + register ssize_t j; - PixelChannel channel=GetPixelChannelChannel(image,i); + channel=GetPixelChannelChannel(image,i); if (channel == IndexPixelChannel) continue; - PixelTrait traits=GetPixelChannelTraits(image,channel); + traits=GetPixelChannelTraits(image,channel); if (traits == UndefinedPixelTrait) continue; n=FormatLocaleFile(file," Channel %.20g:\n",(double) channel);