summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-05 16:13:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-05 16:13:50 +0300
commitac1ef6b19f5c1405cfaa239ab367a93b17043723 (patch)
treeaebfeffdafb2f493dab5392c5cd651e3bb1a8c9a
parent2674184006545257949770687eee362c84ed1964 (diff)
downloadmv-ac1ef6b19f5c1405cfaa239ab367a93b17043723.tar.gz
mv-ac1ef6b19f5c1405cfaa239ab367a93b17043723.tar.bz2
mv-ac1ef6b19f5c1405cfaa239ab367a93b17043723.tar.xz
mv-ac1ef6b19f5c1405cfaa239ab367a93b17043723.zip
Fix compilation on 32 bit systems.
-rw-r--r--src/utils/stringutils.cpp2
-rw-r--r--src/utils/stringutils.h2
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);