Skip to content

Commit

Permalink
unit-constructor1.cpp: Fix floating point truncation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
t-b committed Aug 24, 2016
1 parent 87dea32 commit e0ff1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/unit-constructor1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e0ff1a8

Please sign in to comment.