From 2c7946f2bc3167193c48d5f8621160af62940bec Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 7 Dec 2016 16:21:22 +0100 Subject: [PATCH] :green_heart: hopefully fixed an error on AppVeyor --- test/src/unit-msgpack.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/src/unit-msgpack.cpp b/test/src/unit-msgpack.cpp index 9f73f402..b48be9c2 100644 --- a/test/src/unit-msgpack.cpp +++ b/test/src/unit-msgpack.cpp @@ -225,10 +225,10 @@ TEST_CASE("MessagePack") SECTION("-32769..-2147483648") { - for (int32_t i : - { - -32769l, -65536l, -77777l, -1048576l, -2147483648l - }) + for (int32_t i : std::vector( + { + -32769l, -65536l, -77777l, -1048576l, -2147483648l + })) { CAPTURE(i); @@ -254,9 +254,9 @@ TEST_CASE("MessagePack") // check individual bytes CHECK(result[0] == 0xd2); uint32_t restored = static_cast((static_cast(result[1]) << 030) + - (static_cast(result[2]) << 020) + - (static_cast(result[3]) << 010) + - static_cast(result[4])); + (static_cast(result[2]) << 020) + + (static_cast(result[3]) << 010) + + static_cast(result[4])); CHECK(restored == i); // roundtrip