diff options
Diffstat (limited to '3rdparty/rapidjson/test/unittest/itoatest.cpp')
-rw-r--r-- | 3rdparty/rapidjson/test/unittest/itoatest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/rapidjson/test/unittest/itoatest.cpp b/3rdparty/rapidjson/test/unittest/itoatest.cpp index 9c3107d4178..79db1c71dcd 100644 --- a/3rdparty/rapidjson/test/unittest/itoatest.cpp +++ b/3rdparty/rapidjson/test/unittest/itoatest.cpp @@ -93,7 +93,7 @@ static void u32toa_naive(uint32_t value, char* buffer) { char temp[10]; char *p = temp; do { - *p++ = char(value % 10) + '0'; + *p++ = static_cast<char>(char(value % 10) + '0'); value /= 10; } while (value > 0); @@ -117,7 +117,7 @@ static void u64toa_naive(uint64_t value, char* buffer) { char temp[20]; char *p = temp; do { - *p++ = char(value % 10) + '0'; + *p++ = static_cast<char>(char(value % 10) + '0'); value /= 10; } while (value > 0); |