From: dirk Date: Sat, 6 Sep 2014 22:37:54 +0000 (+0000) Subject: Build fix. X-Git-Tag: 7.0.1-0~2039 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4620adfacf4d6efe93b83ea4b0c3f68bb47736e6;p=imagemagick Build fix. --- 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)