mirror of
https://github.com/nlohmann/json.git
synced 2024-11-28 00:59:02 +08:00
🚧 fixing warning C4293 (#453)
This commit is contained in:
parent
0200f2dc62
commit
9a9d0ba3df
@ -6570,10 +6570,10 @@ class basic_json
|
||||
{
|
||||
case 8:
|
||||
{
|
||||
vec.push_back(static_cast<uint8_t>((number >> 070) & 0xff));
|
||||
vec.push_back(static_cast<uint8_t>((number >> 060) & 0xff));
|
||||
vec.push_back(static_cast<uint8_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) >> 070) & 0xff));
|
||||
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 060) & 0xff));
|
||||
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 050) & 0xff));
|
||||
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 040) & 0xff));
|
||||
// intentional fall-through
|
||||
}
|
||||
|
||||
|
@ -6570,10 +6570,10 @@ class basic_json
|
||||
{
|
||||
case 8:
|
||||
{
|
||||
vec.push_back(static_cast<uint8_t>((number >> 070) & 0xff));
|
||||
vec.push_back(static_cast<uint8_t>((number >> 060) & 0xff));
|
||||
vec.push_back(static_cast<uint8_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) >> 070) & 0xff));
|
||||
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 060) & 0xff));
|
||||
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 050) & 0xff));
|
||||
vec.push_back(static_cast<uint8_t>((static_cast<uint64_t>(number) >> 040) & 0xff));
|
||||
// intentional fall-through
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user