Commit 463ffb21 authored by Niels Lohmann's avatar Niels Lohmann Committed by GitHub

Merge pull request #300 from t-b/fix_warning_in_test_case

unit-constructor1.cpp: Fix floating point truncation warning
parents 29c5f32d e0ff1a83
......@@ -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));
......
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