diff options
-rw-r--r-- | src/gui/windows/shopwindow.cpp | 2 | ||||
-rw-r--r-- | src/utils/stringutils.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp index 58cc268ed..eb28639f8 100644 --- a/src/gui/windows/shopwindow.cpp +++ b/src/gui/windows/shopwindow.cpp @@ -878,7 +878,7 @@ void ShopWindow::showList(const std::string &nick, std::string data) if (sellDialog != nullptr) sellDialog->setMoney(PlayerInfo::getAttribute(Attributes::MONEY)); - for (unsigned f = 0; f < data.length(); f += 9) + for (size_t f = 0; f < data.length(); f += 9) { if (f + 9 > data.length()) break; diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 99160905d..e065616fe 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -251,7 +251,7 @@ unsigned int decodeStr(const std::string &str) int res = str[0] - start; int mult = 1; - for (unsigned int f = 1; f < str.length(); f ++) + for (size_t f = 1; f < str.length(); f ++) { mult *= base; res = res + (str[f] - start) * mult; |