🚨 fix warnings

This commit is contained in:
Niels Lohmann
2021-09-04 22:36:43 +02:00
parent 6cf42d1b55
commit 526bee2bfb
3 changed files with 50 additions and 48 deletions

View File

@@ -292,7 +292,7 @@ TEST_CASE("BON8")
SECTION("-2147483649")
{
json j = -2147483649;
json j = -2147483649L;
std::vector<uint8_t> expected = {0x8D, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF};
const auto result = json::to_bon8(j);
CHECK(result == expected);
@@ -303,7 +303,7 @@ TEST_CASE("BON8")
{
SECTION("-2147483648")
{
json j = -2147483648;
json j = -2147483648L;
std::vector<uint8_t> expected = {0x8C, 0x80, 0x00, 0x00, 0x00};
const auto result = json::to_bon8(j);
CHECK(result == expected);