]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 10 Mar 2018 21:21:42 +0000 (16:21 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 10 Mar 2018 21:21:42 +0000 (16:21 -0500)
MagickCore/compare.c

index 4f385d7c8d7510f0b064ee18de22dff75a7248d3..5382efd09aaff951d5db92cd2e6125628b18c6a7 100644 (file)
@@ -383,7 +383,8 @@ static MagickBooleanType GetAbsoluteDistortion(const Image *image,
     Compute the absolute difference in pixels between two images.
   */
   status=MagickTrue;
-  fuzz=MagickMin(GetPixelChannels(image),GetPixelChannels(reconstruct_image))*
+  fuzz=(double) MagickMin(GetPixelChannels(image),
+    GetPixelChannels(reconstruct_image))*
     GetFuzzyColorDistance(image,reconstruct_image);
   rows=MagickMax(image->rows,reconstruct_image->rows);
   columns=MagickMax(image->columns,reconstruct_image->columns);