From: cristy Date: Wed, 17 Oct 2012 12:22:24 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4829 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65d4e5e73505f154ef2c0c58e7f70fc09bc2c11c;p=imagemagick --- diff --git a/MagickCore/threshold.c b/MagickCore/threshold.c index 6f54ba4b5..93600b419 100644 --- a/MagickCore/threshold.c +++ b/MagickCore/threshold.c @@ -568,11 +568,11 @@ MagickExport MagickBooleanType BlackThresholdImage(Image *image, } if ((flags & PercentValue) != 0) { - threshold.red*=(QuantumRange/100.0); - threshold.green*=(QuantumRange/100.0); - threshold.blue*=(QuantumRange/100.0); - threshold.black*=(QuantumRange/100.0); - threshold.alpha*=(QuantumRange/100.0); + threshold.red*=(MagickRealType) (QuantumRange/100.0); + threshold.green*=(MagickRealType) (QuantumRange/100.0); + threshold.blue*=(MagickRealType) (QuantumRange/100.0); + threshold.black*=(MagickRealType) (QuantumRange/100.0); + threshold.alpha*=(MagickRealType) (QuantumRange/100.0); } /* White threshold image. @@ -1711,11 +1711,11 @@ MagickExport MagickBooleanType WhiteThresholdImage(Image *image, } if ((flags & PercentValue) != 0) { - threshold.red*=(QuantumRange/100.0); - threshold.green*=(QuantumRange/100.0); - threshold.blue*=(QuantumRange/100.0); - threshold.black*=(QuantumRange/100.0); - threshold.alpha*=(QuantumRange/100.0); + threshold.red*=(MagickRealType) (QuantumRange/100.0); + threshold.green*=(MagickRealType) (QuantumRange/100.0); + threshold.blue*=(MagickRealType) (QuantumRange/100.0); + threshold.black*=(MagickRealType) (QuantumRange/100.0); + threshold.alpha*=(MagickRealType) (QuantumRange/100.0); } /* White threshold image.