From: cristy Date: Sun, 18 Mar 2012 22:33:54 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6020 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25d5448b12065f50ddc04fd4c3259a9ada12668a;p=imagemagick --- diff --git a/MagickCore/channel.c b/MagickCore/channel.c index f8cf6a35d..05d0e0eee 100644 --- a/MagickCore/channel.c +++ b/MagickCore/channel.c @@ -357,8 +357,8 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, exception); if (LocaleCompare(token,"alpha") == 0) (void) SetImageAlpha(destination_image,OpaqueAlpha,exception); - if (i >= GetPixelChannels(destination_image)) - SetPixelMetaChannels(destination_image,i- + if (i >= (ssize_t) GetPixelChannels(destination_image)) + (void) SetPixelMetaChannels(destination_image,i- GetPixelChannels(destination_image)+1,exception); GetMagickToken(p,&p,token); break;