]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 2 Feb 2014 15:10:57 +0000 (15:10 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 2 Feb 2014 15:10:57 +0000 (15:10 +0000)
MagickCore/feature.c

index e7e77554bc3ddc3a554e4050a0a413d8c3a12da9..682b38b7a1950ef8ee9c552d7d28791682a66ce6 100644 (file)
@@ -140,9 +140,7 @@ static inline double MagickLog10(const double x)
 {
 #define Log10Epsilon  (1.0e-20)
 
- if (fabs(x) < Log10Epsilon)
-   return(log10(fabs(Log10Epsilon)));
- return(log10(fabs(x)));
+ return(log10(fabs(x)+Log10Epsilon));
 }
 
 MagickExport ChannelFeatures *GetImageFeatures(const Image *image,