]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 30 Apr 2011 19:14:37 +0000 (19:14 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 30 Apr 2011 19:14:37 +0000 (19:14 +0000)
magick/distort.c

index bd7fc865d48e89e7b484bfaa0d50435ee780f4a7..5e86b488e64e374574e5ff5a39e95b597422cbbf 100644 (file)
@@ -2818,7 +2818,7 @@ MagickExport Image *SparseColorImage(const Image *image,
                 + ((double)j-arguments[k+1])*((double)j-arguments[k+1]);
               if ( method == InverseColorInterpolate )
                 weight = sqrt(weight);  /* inverse, not inverse squared */
-              weight = ( weight < 1 ) ? 1 : 1/weight;
+              weight = ( weight < 1.0 ) ? 1.0 : 1.0/weight;
               if ( channel & RedChannel )
                 pixel.red     += arguments[x++]*weight;
               if ( channel & GreenChannel )