]> granicus.if.org Git - imagemagick/commitdiff
Build fix.
authordirk <dirk@git.imagemagick.org>
Sat, 6 Sep 2014 22:37:54 +0000 (22:37 +0000)
committerdirk <dirk@git.imagemagick.org>
Sat, 6 Sep 2014 22:37:54 +0000 (22:37 +0000)
Magick++/lib/Statistic.cpp

index 8d76b7b8f9aef25eaca310b5565891523b3708c6..52e9b540526ab8da1bb234c5b883aa7def71fc79 100644 (file)
@@ -154,7 +154,7 @@ Magick::ChannelPerceptualHash::ChannelPerceptualHash(
     if (sscanf(hash_.substr(i*5,5).c_str(),"%05x",&hex) != 1)
       throw ErrorOption("Invalid hash value");
 
-    value=((unsigned short)hex) / pow(10(hex >> 17));
+    value=((unsigned short)hex) / pow(10.0, (double)(hex >> 17));
     if (hex & (1 << 16))
       value=-value;
     if (i < 7)