]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 20 Oct 2019 19:02:41 +0000 (15:02 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 20 Oct 2019 19:02:41 +0000 (15:02 -0400)
MagickCore/enhance.c

index 75007feec490dbd53d391784513d5d3705a9de38..5e73ad8c57fd9f017efbee30c0d9c7fea293e892 100644 (file)
@@ -2787,7 +2787,7 @@ MagickExport MagickBooleanType HaldClutImage(Image *image,
       pixel3=zero;
       area=point.y;
       if (hald_image->interpolate == NearestInterpolatePixel)
-        area=(point.y < 0.5) ? 0 : 1;
+        area=(point.y < 0.5) ? 0.0 : 1.0;
       CompositePixelInfoAreaBlend(&pixel1,pixel1.alpha,&pixel2,pixel2.alpha,
         area,&pixel3);
       offset+=cube_size;