summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-09 17:52:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-09 17:52:58 +0300
commit2fc2ae36225bbf7279e5093e236f2c16a674285d (patch)
tree021c0079ac65029446caccb4f2d9432427c4ce35 /src/utils
parent6b60e9b14ff3cadcf12e0f487eb7b389fa9c81e4 (diff)
downloadmanaplus-2fc2ae36225bbf7279e5093e236f2c16a674285d.tar.gz
manaplus-2fc2ae36225bbf7279e5093e236f2c16a674285d.tar.bz2
manaplus-2fc2ae36225bbf7279e5093e236f2c16a674285d.tar.xz
manaplus-2fc2ae36225bbf7279e5093e236f2c16a674285d.zip
Fix compilation warnings.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/stringutils.cpp4
-rw-r--r--src/utils/stringutils.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 5674abfd9..b308a5abe 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -747,9 +747,9 @@ bool parse2Int(const std::string &args, int &x, int &y)
return isValid;
}
-int parseNumber(const std::string &str)
+uint32_t parseNumber(const std::string &str)
{
- int i = 0;
+ uint32_t i = 0;
int idx = 0;
if (strStartWith(str, "0x"))
idx = 2;
diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h
index cf729c345..caf3869e0 100644
--- a/src/utils/stringutils.h
+++ b/src/utils/stringutils.h
@@ -240,6 +240,6 @@ void secureChatCommand(std::string &str);
bool parse2Int(const std::string &args, int &x, int &y);
-int parseNumber(const std::string &str);
+uint32_t parseNumber(const std::string &str);
#endif // UTILS_STRINGUTILS_H