From 65d4e5e73505f154ef2c0c58e7f70fc09bc2c11c Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 17 Oct 2012 12:22:24 +0000 Subject: [PATCH] --- MagickCore/threshold.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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. -- 2.50.1