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)