]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 1 Oct 2014 21:29:11 +0000 (21:29 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 1 Oct 2014 21:29:11 +0000 (21:29 +0000)
MagickCore/effect.c

index 6415c1314a8bc6712a662ed33c6946aa6f4f9353..237553297d563ddae07f431d77924aaffc8ed5d0 100644 (file)
@@ -1525,19 +1525,19 @@ MagickExport Image *KuwaharaImage(const Image *image,const double radius,
         {
           case 0:
           {
-            x_offset=x-width/2L-1;
-            y_offset=y-width/2L-1;
+            x_offset=x-(ssize_t) width/2L-1;
+            y_offset=y-(ssize_t) width/2L-1;
             break;
           }
           case 1:
           {
             x_offset=x;
-            y_offset=y-width/2L-1;
+            y_offset=y-(ssize_t) width/2L-1;
             break;
           }
           case 2:
           {
-            x_offset=x-width/2L-1;
+            x_offset=x-(ssize_t) width/2L-1;
             y_offset=y;
             break;
           }