🚧 fixing warning C4293 (#453)
This commit is contained in:
parent
0200f2dc62
commit
9a9d0ba3df
2 changed files with 8 additions and 8 deletions
|
@ -6570,10 +6570,10 @@ class basic_json
|
||||||
{
|
{
|
||||||
case 8:
|
case 8:
|
||||||
{
|
{
|
||||||
vec.push_back(static_cast<uint8_t>((number >> 070) & 0xff));
|
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 070) & 0xff));
|
||||||
vec.push_back(static_cast<uint8_t>((number >> 060) & 0xff));
|
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 060) & 0xff));
|
||||||
vec.push_back(static_cast<uint8_t>((number >> 050) & 0xff));
|
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 050) & 0xff));
|
||||||
vec.push_back(static_cast<uint8_t>((number >> 040) & 0xff));
|
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 040) & 0xff));
|
||||||
// intentional fall-through
|
// intentional fall-through
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6570,10 +6570,10 @@ class basic_json
|
||||||
{
|
{
|
||||||
case 8:
|
case 8:
|
||||||
{
|
{
|
||||||
vec.push_back(static_cast<uint8_t>((number >> 070) & 0xff));
|
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 070) & 0xff));
|
||||||
vec.push_back(static_cast<uint8_t>((number >> 060) & 0xff));
|
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 060) & 0xff));
|
||||||
vec.push_back(static_cast<uint8_t>((number >> 050) & 0xff));
|
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 050) & 0xff));
|
||||||
vec.push_back(static_cast<uint8_t>((number >> 040) & 0xff));
|
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 040) & 0xff));
|
||||||
// intentional fall-through
|
// intentional fall-through
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue