]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1761
authorCristy <urban-warrior@imagemagick.org>
Sun, 20 Oct 2019 12:57:09 +0000 (08:57 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 20 Oct 2019 12:57:09 +0000 (08:57 -0400)
MagickCore/quantum-import.c

index 3b0c01e0587b1228de2f3cf1094772cab93ea3c5..99b298b8599108464e427066cf3b0ffea43d6ea1 100644 (file)
@@ -179,7 +179,7 @@ static inline const unsigned char *PushQuantumFloatPixel(
       p=(float *) quantum;
       *pixel=(*p);
       *pixel-=quantum_info->minimum;
-      *pixel*=quantum_info->scale;
+      *pixel*=(float) quantum_info->scale;
       return(pixels);
     }
   quantum[3]=(*pixels++);
@@ -189,7 +189,7 @@ static inline const unsigned char *PushQuantumFloatPixel(
   p=(float *) quantum;
   *pixel=(*p);
   *pixel-=quantum_info->minimum;
-  *pixel*=quantum_info->scale;
+  *pixel*=(float) quantum_info->scale;
   return(pixels);
 }