mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-11 10:16:41 +00:00
LibWasm: Read indices as LEB128 u32s
Every type of index was previously being read as a size_t.
This commit is contained in:
@@ -82,7 +82,7 @@ template<typename T>
|
||||
struct GenericIndexParser {
|
||||
static ParseResult<T> parse(Stream& stream)
|
||||
{
|
||||
auto value_or_error = stream.read_value<LEB128<size_t>>();
|
||||
auto value_or_error = stream.read_value<LEB128<u32>>();
|
||||
if (value_or_error.is_error())
|
||||
return with_eof_check(stream, ParseError::ExpectedIndex);
|
||||
size_t value = value_or_error.release_value();
|
||||
|
||||
Reference in New Issue
Block a user