Skip to content

Commit a7b80fe

Browse files
committed
Merge pull request open-source-parsers#337 from AMDmi3/patch-1
Specify float constant as float
1 parent 8bdb07d commit a7b80fe

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
@@ -1257,7 +1257,7 @@ JSONTEST_FIXTURE(ValueTest, nonIntegers) {
12571257

12581258
// A 16-digit floating point number.
12591259
val = Json::Value(2199023255552000.0f);
1260-
JSONTEST_ASSERT_EQUAL(float(2199023255552000), val.asFloat());
1260+
JSONTEST_ASSERT_EQUAL(float(2199023255552000.0f), val.asFloat());
12611261
JSONTEST_ASSERT_STRING_EQUAL("2199023255552000",
12621262
normalizeFloatingPointStr(val.asString()));
12631263

0 commit comments

Comments
 (0)