]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 8 Aug 2012 12:07:39 +0000 (12:07 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 8 Aug 2012 12:07:39 +0000 (12:07 +0000)
MagickCore/pixel-accessor.h

index 496e8f94ea2cf8a150cf208069caf73bbeda4b25..3367020661cd032c8d56e2f9ce271e3378fd65fb 100644 (file)
@@ -35,7 +35,7 @@ static inline double CompandsRGB(const double pixel)
 {
   if (pixel <= (0.0031308*QuantumRange))
     return(12.92*pixel);
-  return(1.055*QuantumRange*pow(QuantumScale*pixel,1.0/2.4)-0.055);
+  return(QuantumRange*(1.055*pow(QuantumScale*pixel,1.0/2.4)-0.055));
 }
 
 static inline double DecompandsRGB(const double pixel)