diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-14 19:10:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-14 19:10:55 +0300 |
commit | 8660f14a94af91d42d3c8aae1b370f47cad9720b (patch) | |
tree | 777b5782c3c6e97c575c7ca9a54d2ef55d2d07b1 /src/utils/stringutils.cpp | |
parent | 1d3e44a5d4e50d18e614a888c6cd3b8cccdf7da4 (diff) | |
download | ManaVerse-8660f14a94af91d42d3c8aae1b370f47cad9720b.tar.gz ManaVerse-8660f14a94af91d42d3c8aae1b370f47cad9720b.tar.bz2 ManaVerse-8660f14a94af91d42d3c8aae1b370f47cad9720b.tar.xz ManaVerse-8660f14a94af91d42d3c8aae1b370f47cad9720b.zip |
Fix some pointer to bool conversions.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r-- | src/utils/stringutils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 2d91509c8..8920d111b 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -799,7 +799,7 @@ std::string toString(uint32_t num) size_t idx = 28; do buf[idx--] = CAST_8((num % 10) + '0'); - while (num /= 10); + while ((num /= 10) != 0); return buf + idx + 1; } @@ -810,7 +810,7 @@ std::string toString(uint64_t num) size_t idx = 98; do buf[idx--] = CAST_8((num % 10) + '0'); - while (num /= 10); + while ((num /= 10) != 0); return buf + idx + 1; } @@ -821,7 +821,7 @@ std::string toString(uint16_t num) size_t idx = 8; do buf[idx--] = CAST_8((num % 10) + '0'); - while (num /= 10); + while ((num /= 10) != 0); return buf + idx + 1; } @@ -832,7 +832,7 @@ std::string toString(unsigned char num) size_t idx = 3; do buf[idx--] = CAST_8((num % 10) + '0'); - while (num /= 10); + while ((num /= 10) != 0); return buf + idx + 1; } @@ -850,7 +850,7 @@ std::string toString(int32_t num) } do buf[idx--] = CAST_8((num % 10) + '0'); - while (num /= 10); + while ((num /= 10) != 0); if (useSign) buf[idx--] = '-'; return buf + idx + 1; |