From 9e765f5aedc46d3c116786367d017d4691f8dddb Mon Sep 17 00:00:00 2001 From: gistrec Date: Mon, 18 May 2020 10:25:38 +0000 Subject: [PATCH] Fixed std::numeric_limit::max() call --- test/src/unit-cbor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/unit-cbor.cpp b/test/src/unit-cbor.cpp index 2a53bb52..873940f9 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 = {