mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:57:35 +00:00
parent
8003bde03d
commit
5a40ce442b
6 changed files with 14 additions and 14 deletions
|
@ -28,7 +28,7 @@ static auto parse_vector(Stream& stream)
|
|||
{
|
||||
ScopeLogger<WASM_BINPARSER_DEBUG> logger;
|
||||
if constexpr (requires { T::parse(stream); }) {
|
||||
using ResultT = typename decltype(T::parse(stream))::ValueType;
|
||||
using ResultT = typename decltype(T::parse(stream))::ResultType;
|
||||
auto count_or_error = stream.read_value<LEB128<size_t>>();
|
||||
if (count_or_error.is_error())
|
||||
return ParseResult<Vector<ResultT>> { with_eof_check(stream, ParseError::ExpectedSize) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue