Skip to content

Commit 6329975

Browse files
committed
Merge pull request open-source-parsers#337 from AMDmi3/patch-1
Specify float constant as float
2 parents 63a961a + 7acfd59 commit 6329975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test_lib_json/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ JSONTEST_FIXTURE(ValueTest, nonIntegers) {
12541254

12551255
// A 16-digit floating point number.
12561256
val = Json::Value(2199023255552000.0f);
1257-
JSONTEST_ASSERT_EQUAL(float(2199023255552000), val.asFloat());
1257+
JSONTEST_ASSERT_EQUAL(float(2199023255552000.0f), val.asFloat());
12581258
JSONTEST_ASSERT_STRING_EQUAL("2199023255552000",
12591259
normalizeFloatingPointStr(val.asString()));
12601260

0 commit comments

Comments
 (0)