diff --git a/test/src/unit-cbor.cpp b/test/src/unit-cbor.cpp index 2a53bb529..873940f99 100644 --- a/test/src/unit-cbor.cpp +++ b/test/src/unit-cbor.cpp @@ -925,7 +925,7 @@ TEST_CASE("CBOR") } SECTION("3.40282e+38(max float)") { - float v = std::numeric_limits::max(); + float v = (std::numeric_limits::max)(); json j = v; std::vector expected = { @@ -953,7 +953,7 @@ TEST_CASE("CBOR") } SECTION("1 + 3.40282e+38(more than max float)") { - double v = static_cast(std::numeric_limits::max()) + 0.1e+34; + double v = static_cast((std::numeric_limits::max)()) + 0.1e+34; json j = v; std::vector expected = {