Fix conversion error on Windows

This commit is contained in:
John Keiser 2020-03-26 12:12:00 -07:00
parent 006cc2ed60
commit 56841bcede
1 changed files with 1 additions and 1 deletions

View File

@ -951,7 +951,7 @@ inline simdjson_result<double> document::element::as_double() const noexcept {
if (result < 0) {
return NUMBER_OUT_OF_RANGE;
}
return result;
return double(result);
}
case internal::tape_type::DOUBLE:
return next_tape_value<double>();