Commit e0ff1a83 by Thomas Braun

unit-constructor1.cpp: Fix floating point truncation warning

parent 87dea32e
...@@ -709,7 +709,7 @@ TEST_CASE("constructors") ...@@ -709,7 +709,7 @@ TEST_CASE("constructors")
SECTION("float") SECTION("float")
{ {
float n = 42.23; float n = 42.23f;
json j(n); json j(n);
CHECK(j.type() == json::value_t::number_float); CHECK(j.type() == json::value_t::number_float);
CHECK(j.m_value.number_float == Approx(j_reference.m_value.number_float)); CHECK(j.m_value.number_float == Approx(j_reference.m_value.number_float));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment