From 74571d531cb64127d98e63569e96b2b4e033bcbd Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 7 Dec 2016 16:34:02 +0100 Subject: [PATCH] :green_heart: still fixing the AppVeyor error --- test/src/unit-cbor.cpp | 2 +- test/src/unit-msgpack.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/src/unit-cbor.cpp b/test/src/unit-cbor.cpp index 31367b1cd..4483c1b57 100644 --- a/test/src/unit-cbor.cpp +++ b/test/src/unit-cbor.cpp @@ -92,7 +92,7 @@ TEST_CASE("CBOR") // create expected byte vector std::vector expected; expected.push_back(static_cast(0x39)); - uint16_t positive = -1 - i; + uint16_t positive = static_cast(-1 - i); expected.push_back(static_cast((positive >> 8) & 0xff)); expected.push_back(static_cast(positive & 0xff)); diff --git a/test/src/unit-msgpack.cpp b/test/src/unit-msgpack.cpp index b48be9c20..b242c93a9 100644 --- a/test/src/unit-msgpack.cpp +++ b/test/src/unit-msgpack.cpp @@ -225,9 +225,9 @@ TEST_CASE("MessagePack") SECTION("-32769..-2147483648") { - for (int32_t i : std::vector( + for (auto i : std::vector( { - -32769l, -65536l, -77777l, -1048576l, -2147483648l + -32769, -65536, -77777, -1048576, -2147483648 })) { CAPTURE(i);