Skip to content

Commit

Permalink
Merge pull request #300 from t-b/fix_warning_in_test_case
Browse files Browse the repository at this point in the history
unit-constructor1.cpp: Fix floating point truncation warning
  • Loading branch information
nlohmann authored Aug 29, 2016
2 parents 29c5f32 + e0ff1a8 commit 463ffb2
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 463ffb2

Please sign in to comment.