hopefully fixed a warning
This commit is contained in:
parent
74544b42af
commit
62f81a60d7
2 changed files with 8 additions and 4 deletions
|
@ -6078,9 +6078,11 @@ class basic_json
|
||||||
{
|
{
|
||||||
// convert a number 0..15 to its hex representation
|
// convert a number 0..15 to its hex representation
|
||||||
// (0..f)
|
// (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
|
// print character c as \uxxxx
|
||||||
|
|
|
@ -6078,9 +6078,11 @@ class basic_json
|
||||||
{
|
{
|
||||||
// convert a number 0..15 to its hex representation
|
// convert a number 0..15 to its hex representation
|
||||||
// (0..f)
|
// (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
|
// print character c as \uxxxx
|
||||||
|
|
Loading…
Reference in a new issue