From aaa119d6e2c09facf237132b5a186a8d6dc6efb9 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 30 Apr 2017 14:13:06 +0200 Subject: [PATCH] Fix build for older versions of VisualStudio. --- MagickCore/identify.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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); -- 2.40.0