]> granicus.if.org Git - imagemagick/commitdiff
Squash compiler warning
authorCristy <urban-warrior@imagemagick.org>
Tue, 11 Aug 2015 10:24:26 +0000 (06:24 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 11 Aug 2015 10:24:26 +0000 (06:24 -0400)
MagickCore/effect.c

index ba5a9cdd0401b9a6047b52ad2f32b042011b66af..844053d8fab2b8b1994adb5ccb295c211dc40099 100644 (file)
@@ -3629,8 +3629,8 @@ MagickExport Image *SpreadImage(const Image *image,const double radius,
           (GetPseudoRandomValue(random_info)-0.5));
         y_offset=(ssize_t) floor((double) y+width*
           (GetPseudoRandomValue(random_info)-0.5));
-        if ((x_offset >= 0) && (x_offset < image->columns) &&
-            (y_offset >= 0) && (y_offset < image->rows))
+        if ((x_offset >= 0) && (x_offset < (ssize_t) image->columns) &&
+            (y_offset >= 0) && (y_offset < (ssize_t) image->rows))
           break;
       }
       p=GetCacheViewAuthenticPixels(image_view,x_offset,y_offset,1,1,exception);