diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-05 16:13:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-05 16:13:50 +0300 |
commit | ac1ef6b19f5c1405cfaa239ab367a93b17043723 (patch) | |
tree | aebfeffdafb2f493dab5392c5cd651e3bb1a8c9a /src/utils | |
parent | 2674184006545257949770687eee362c84ed1964 (diff) | |
download | manaverse-ac1ef6b19f5c1405cfaa239ab367a93b17043723.tar.gz manaverse-ac1ef6b19f5c1405cfaa239ab367a93b17043723.tar.bz2 manaverse-ac1ef6b19f5c1405cfaa239ab367a93b17043723.tar.xz manaverse-ac1ef6b19f5c1405cfaa239ab367a93b17043723.zip |
Fix compilation on 32 bit systems.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/stringutils.cpp | 2 | ||||
-rw-r--r-- | src/utils/stringutils.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 706135a56..c53d33884 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -720,7 +720,7 @@ std::string toString(unsigned int num) return buf + idx + 1; } -std::string toString(size_t num) +std::string toString(unsigned long num) { char buf[100]; buf[99] = '\0'; diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index cc479d80c..738b56cb8 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -72,7 +72,7 @@ unsigned int atox(const std::string &str) A_WARN_UNUSED; */ std::string toString(unsigned int num); -std::string toString(size_t num); +std::string toString(unsigned long num); std::string toString(unsigned char num); |