Build fix.

This commit is contained in:
dirk
2014-09-06 22:37:54 +00:00
parent e316d154e7
commit 4620adfacf
+1 -1
View 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)