From 78baaa99757ca79bc4cf6000cf8eaacdbc5a7f3c Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 24 Dec 2021 13:52:14 +0100 Subject: [PATCH] :rotating_light: fix warnings --- test/src/unit-cbor.cpp | 2 +- test/src/unit-msgpack.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/unit-cbor.cpp b/test/src/unit-cbor.cpp index d67745e75..95a2c8885 100644 --- a/test/src/unit-cbor.cpp +++ b/test/src/unit-cbor.cpp @@ -610,7 +610,7 @@ TEST_CASE("CBOR") SECTION("-32768..-129 (int 16)") { - for (int16_t i = -32768; i <= int16_t(-129); ++i) + for (int16_t i = -32768; i <= static_cast(-129); ++i) { CAPTURE(i) diff --git a/test/src/unit-msgpack.cpp b/test/src/unit-msgpack.cpp index 0ac9e30c1..e593c364c 100644 --- a/test/src/unit-msgpack.cpp +++ b/test/src/unit-msgpack.cpp @@ -446,7 +446,7 @@ TEST_CASE("MessagePack") SECTION("-32768..-129 (int 16)") { - for (int16_t i = -32768; i <= int16_t(-129); ++i) + for (int16_t i = -32768; i <= static_cast(-129); ++i) { CAPTURE(i)