diff --git a/MagickCore/gem.c b/MagickCore/gem.c
index 3ae8979..37cb75a 100644
--- a/MagickCore/gem.c
+++ b/MagickCore/gem.c
@@ -759,7 +759,7 @@
   assert(red != (double *) NULL);
   assert(green != (double *) NULL);
   assert(blue != (double *) NULL);
-  ConvertLCHabToXYZ(luma*100.0,255.0*(chroma-0.5),255.0*(hue-0.5),&X,&Y,&Z);
+  ConvertLCHabToXYZ(100.0*luma,255.0*(chroma-0.5),255.0*(hue-0.5),&X,&Y,&Z);
   ConvertXYZToRGB(X,Y,Z,red,green,blue);
 }