mirror of
https://github.com/nlohmann/json.git
synced 2024-12-03 21:59:08 +08:00
hopefully fixed a warning
This commit is contained in:
parent
74544b42af
commit
62f81a60d7
@ -6078,9 +6078,11 @@ class basic_json
|
||||
{
|
||||
// convert a number 0..15 to its hex representation
|
||||
// (0..f)
|
||||
auto hexify = [](const char v) -> char
|
||||
const auto hexify = [](const int v) -> char
|
||||
{
|
||||
return (v < 10) ? ('0' + v) : ('a' + v - 10);
|
||||
return (v < 10)
|
||||
? ('0' + static_cast<char>(v))
|
||||
: ('a' + static_cast<char>(v - 10));
|
||||
};
|
||||
|
||||
// print character c as \uxxxx
|
||||
|
@ -6078,9 +6078,11 @@ class basic_json
|
||||
{
|
||||
// convert a number 0..15 to its hex representation
|
||||
// (0..f)
|
||||
auto hexify = [](const char v) -> char
|
||||
const auto hexify = [](const int v) -> char
|
||||
{
|
||||
return (v < 10) ? ('0' + v) : ('a' + v - 10);
|
||||
return (v < 10)
|
||||
? ('0' + static_cast<char>(v))
|
||||
: ('a' + static_cast<char>(v - 10));
|
||||
};
|
||||
|
||||
// print character c as \uxxxx
|
||||
|
Loading…
Reference in New Issue
Block a user