diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-15 21:30:58 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-15 21:33:08 +0100 |
commit | a6623430aa11b02f93761d27c25db9bb4157ec6f (patch) | |
tree | fbee4b379bbe786a0acfbf5a21d7bc85d88ff77f /src/units.cpp | |
parent | 2398fc21de78bb720de672355c7972999a92e47a (diff) | |
download | mana-a6623430aa11b02f93761d27c25db9bb4157ec6f.tar.gz mana-a6623430aa11b02f93761d27c25db9bb4157ec6f.tar.bz2 mana-a6623430aa11b02f93761d27c25db9bb4157ec6f.tar.xz mana-a6623430aa11b02f93761d27c25db9bb4157ec6f.zip |
Fixed compiler warnings
Comparison between signed and unsigned integer expressions.
Diffstat (limited to 'src/units.cpp')
-rw-r--r-- | src/units.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |