]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 18 Mar 2012 22:33:54 +0000 (22:33 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 18 Mar 2012 22:33:54 +0000 (22:33 +0000)
MagickCore/channel.c

index f8cf6a35d64afca358695e5a8aa91e12558f6b4d..05d0e0eee7bd4c952cb53614f78b5be054c58e1c 100644 (file)
@@ -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;