commit | 4620adfacf4d6efe93b83ea4b0c3f68bb47736e6 | [log] [tgz] |
---|---|---|
author | dirk <dirk@git.imagemagick.org> | Sat Sep 06 22:37:54 2014 +0000 |
committer | dirk <dirk@git.imagemagick.org> | Sat Sep 06 22:37:54 2014 +0000 |
tree | 1da5d9d2f02464d67f76de3a2937b68a86e9f8a4 | |
parent | e316d154e7b050fab78dbf86b33f0797594939ca [diff] [blame] |
Build fix.
diff --git a/Magick++/lib/Statistic.cpp b/Magick++/lib/Statistic.cpp index 8d76b7b..52e9b54 100644 --- a/Magick++/lib/Statistic.cpp +++ b/Magick++/lib/Statistic.cpp
@@ -154,7 +154,7 @@ 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)