Skip to content

Commit 79e738a

Browse files
committed
Улучшение в конвертации double
1 parent 5b48bdf commit 79e738a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/json.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ JsonValueTempl<K>* StreamedJsonParser<K>::addNumber(JsonValueTempl<K>* current)
11161116
}
11171117

11181118
if (!asInt || jsonValue.is_undefined()) {
1119-
jsonValue = ssValue.to_double().value_or(std::nan("0"));
1119+
jsonValue = ssValue.template to_double<false, false>().value_or(std::nan("0"));
11201120
}
11211121

11221122
if constexpr (!All) {

0 commit comments

Comments
 (0)