From a6623430aa11b02f93761d27c25db9bb4157ec6f Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 15 Feb 2009 21:30:58 +0100 Subject: Fixed compiler warnings Comparison between signed and unsigned integer expressions. --- 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 8fa11c9f..3c02fb05 100644 --- a/src/units.cpp +++ b/src/units.cpp @@ -188,7 +188,7 @@ std::string formatUnit(const int value, const int type) pl.symbol.c_str()); } - for (int i = 2; i < ud.levels.size(); i++) + for (unsigned int i = 2; i < ud.levels.size(); i++) { pl = ul; ul = ud.levels[i]; @@ -207,7 +207,7 @@ std::string formatUnit(const int value, const int type) } else { - for (int i = 0; i < ud.levels.size(); i++) + for (unsigned int i = 0; i < ud.levels.size(); i++) { ul = ud.levels[i]; if (amount < ul.count && ul.count > 0) { -- cgit v1.2.3-70-g09d2