From e0ff1a837c889e73eada0105758fd903d06c3cf7 Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Thu, 25 Aug 2016 00:24:33 +0200 Subject: [PATCH] unit-constructor1.cpp: Fix floating point truncation warning --- test/src/unit-constructor1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/unit-constructor1.cpp b/test/src/unit-constructor1.cpp index 87728648..8a26738b 100644 --- a/test/src/unit-constructor1.cpp +++ b/test/src/unit-constructor1.cpp @@ -709,7 +709,7 @@ TEST_CASE("constructors") SECTION("float") { - float n = 42.23; + float n = 42.23f; json j(n); CHECK(j.type() == json::value_t::number_float); CHECK(j.m_value.number_float == Approx(j_reference.m_value.number_float));