diff options
Diffstat (limited to 'src/units.cpp')
-rw-r--r-- | src/units.cpp | 2 |
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) { |