diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/stringutils.cpp | 4 | ||||
-rw-r--r-- | src/utils/stringutils.h | 2 |
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 |