From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/units.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/units.cpp') diff --git a/src/units.cpp b/src/units.cpp index 6d7e2a49c..6fa0a963a 100644 --- a/src/units.cpp +++ b/src/units.cpp @@ -203,7 +203,7 @@ static std::string formatUnit(const int value, const int type) else { double amount = ud.conversion * value; - const unsigned int sz = static_cast(ud.levels.size()); + const unsigned int sz = CAST_U32(ud.levels.size()); // If only the first level is needed, act like mix if false if (ud.mix && !ud.levels.empty() && ud.levels[1].count < amount) @@ -211,7 +211,7 @@ static std::string formatUnit(const int value, const int type) std::string output; UnitLevel pl = ud.levels[0]; ul = ud.levels[1]; - int levelAmount = static_cast(amount); + int levelAmount = CAST_S32(amount); int nextAmount = 0; if (ul.count) -- cgit v1.2.3-60-g2f50