Skip to content

Commit 32524a9

Browse files
committed
Fix number conversion in jsonToValue()
1 parent 3c09b76 commit 32524a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/reader_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Value LIBSCRATCHCPP_EXPORT jsonToValue(nlohmann::json value)
1515
if (value.is_string())
1616
return value.get<std::string>();
1717
else if (value.is_number())
18-
return std::stof(value.dump());
18+
return std::stod(value.dump());
1919
else if (value.is_boolean())
2020
return value.get<bool>();
2121
else

0 commit comments

Comments
 (0)