]> granicus.if.org Git - imagemagick/commitdiff
Ensure -fuzz works properly with floating point pixels
authorCristy <urban-warrior@imagemagick.org>
Sat, 5 Sep 2015 00:21:30 +0000 (20:21 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 5 Sep 2015 00:21:30 +0000 (20:21 -0400)
MagickCore/pixel-accessor.h

index 2e9e8d1c7fb669f2932539d62523fbb8a673fe2e..52c1a708fd5ffb4027d4983252cf822036ba944e 100644 (file)
@@ -443,7 +443,7 @@ static inline MagickBooleanType IsPixelAtDepth(const Quantum pixel,
 static inline MagickBooleanType IsPixelEquivalent(const Image *restrict image,
   const Quantum *restrict p,const PixelInfo *restrict q)
 {
-#define ScaleAbsolutePixelValue(alpha)  (QuantumScale*AbsolutePixelValue(alpha))
+#define ScaleAbsolutePixelValue(alpha)  AbsolutePixelValue(QuantumScale*(alpha))
 
   MagickRealType
     value;