aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristy <mikayla-grace@urban-warrior.org>2021-01-05 09:17:40 -0500
committerCristy <mikayla-grace@urban-warrior.org>2021-01-05 09:17:40 -0500
commit97552ad9ea7c10d05a477a900e3f0b0b623ffda2 (patch)
tree131bec63f7d4131750393fafb7ec3682284b5636
parent02870268c4bfb997fb3209cc9f3997e20c7bb3fc (diff)
downloadImageMagick-97552ad9ea7c10d05a477a900e3f0b0b623ffda2.tar.gz
...
-rw-r--r--MagickCore/color.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MagickCore/color.c b/MagickCore/color.c
index 3c6974fd1..7a64c0108 100644
--- a/MagickCore/color.c
+++ b/MagickCore/color.c
@@ -2202,16 +2202,16 @@ static MagickStatusType ParseCSSColor(const char *magick_restrict color,
char
*p;
- double
+ float
intensity;
p=q;
- intensity=StringToDouble(p,&q);
+ intensity=(float) StringToDouble(p,&q);
if (p == q)
break;
if (*q == '%')
{
- intensity*=0.01*255.0;
+ intensity*=0.01f*255.0f;
q++;
}
switch (i)