Skip to content

Commit 463ffb2

Browse files
authored
Merge pull request #300 from t-b/fix_warning_in_test_case
unit-constructor1.cpp: Fix floating point truncation warning
2 parents 29c5f32 + e0ff1a8 commit 463ffb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/src/unit-constructor1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ TEST_CASE("constructors")
709709

710710
SECTION("float")
711711
{
712-
float n = 42.23;
712+
float n = 42.23f;
713713
json j(n);
714714
CHECK(j.type() == json::value_t::number_float);
715715
CHECK(j.m_value.number_float == Approx(j_reference.m_value.number_float));

0 commit comments

Comments
 (0)