From 4620adfacf4d6efe93b83ea4b0c3f68bb47736e6 Mon Sep 17 00:00:00 2001 From: dirk Date: Sat, 6 Sep 2014 22:37:54 +0000 Subject: [PATCH] Build fix. --- Magick++/lib/Statistic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Magick++/lib/Statistic.cpp b/Magick++/lib/Statistic.cpp index 8d76b7b8f..52e9b5405 100644 --- a/Magick++/lib/Statistic.cpp +++ b/Magick++/lib/Statistic.cpp @@ -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) -- 2.40.0