summaryrefslogtreecommitdiff
path: root/src/units.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-15 21:30:58 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-15 21:33:08 +0100
commita6623430aa11b02f93761d27c25db9bb4157ec6f (patch)
treefbee4b379bbe786a0acfbf5a21d7bc85d88ff77f /src/units.cpp
parent2398fc21de78bb720de672355c7972999a92e47a (diff)
downloadmana-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.cpp4
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) {