From: Cristy Date: Sat, 5 Sep 2015 00:21:30 +0000 (-0400) Subject: Ensure -fuzz works properly with floating point pixels X-Git-Tag: 7.0.1-0~649 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d803206fa10b99ad1ef57584fd54e2d33052441;p=imagemagick Ensure -fuzz works properly with floating point pixels --- diff --git a/MagickCore/pixel-accessor.h b/MagickCore/pixel-accessor.h index 2e9e8d1c7..52c1a708f 100644 --- a/MagickCore/pixel-accessor.h +++ b/MagickCore/pixel-accessor.h @@ -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;