🚧 fixed more warnings

This commit is contained in:
Niels Lohmann 2017-02-22 18:14:29 +01:00
parent 345a106d73
commit 8cec55a271
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
10 changed files with 82 additions and 30 deletions

View file

@ -237,7 +237,7 @@ TEST_CASE("CBOR")
const auto result = json::to_cbor(j);
CHECK(result == expected);
int16_t restored = -1 - ((result[1] << 8) + result[2]);
int16_t restored = static_cast<int16_t>(-1 - ((result[1] << 8) + result[2]));
CHECK(restored == -9263);
// roundtrip