Skip to content

Commit

Permalink
Fix call_indirect's decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Jan 14, 2025
1 parent c6a7e6c commit 9a66732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywasm/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def from_reader(cls, r: typing.BinaryIO) -> typing.Self:
o.args.append(pywasm.leb128.u.decode_reader(r)[0])
case pywasm.opcode.call_indirect:
o.args.append(pywasm.leb128.u.decode_reader(r)[0])
o.args.append(ord(r.read(1)))
o.args.append(pywasm.leb128.u.decode_reader(r)[0])
case pywasm.opcode.select_type:
o.args.append([pywasm.leb128.u.decode_reader(r)[0] for _ in range(pywasm.leb128.u.decode_reader(r)[0])])
case pywasm.opcode.local_get:
Expand Down

0 comments on commit 9a66732

Please sign in to comment.