diff --git a/benchmark/partial_tweets/domnoexcept.h b/benchmark/partial_tweets/domnoexcept.h index 1dd48a28..57eeaa2a 100644 --- a/benchmark/partial_tweets/domnoexcept.h +++ b/benchmark/partial_tweets/domnoexcept.h @@ -17,7 +17,9 @@ private: dom::parser parser{}; std::vector tweets{}; - simdjson_really_inline simdjson_result nullable_int(dom::element element) noexcept { + simdjson_really_inline simdjson_result nullable_int(simdjson_result result) noexcept { + dom::element element; + SIMDJSON_TRY( result.get(element) ); if (element.is_null()) { return 0; } return element.get_uint64(); }