summaryrefslogtreecommitdiff
path: root/src/units.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-08 22:48:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-08 22:48:11 +0300
commit767b8400fb086616616a298655f0bc2eaf239256 (patch)
tree9d82215887c79c596127506f50daf2ed31c23d8c /src/units.cpp
parentcd0de3bd2668294ab3174d3b5f032fefc25fa0e8 (diff)
downloadplus-767b8400fb086616616a298655f0bc2eaf239256.tar.gz
plus-767b8400fb086616616a298655f0bc2eaf239256.tar.bz2
plus-767b8400fb086616616a298655f0bc2eaf239256.tar.xz
plus-767b8400fb086616616a298655f0bc2eaf239256.zip
Fix code style in other files.
Diffstat (limited to 'src/units.cpp')
-rw-r--r--src/units.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/units.cpp b/src/units.cpp
index ec4084126..63db99273 100644
--- a/src/units.cpp
+++ b/src/units.cpp
@@ -221,7 +221,7 @@ static std::string formatUnit(const int value, const int type)
if (ul.count)
levelAmount /= ul.count;
- amount -= levelAmount * ul.count;
+ amount -= static_cast<double>(levelAmount * ul.count);
if (amount > 0)
{