Skip to content

Commit

Permalink
Merge pull request #373 from wasmx/imm-stack-height-read
Browse files Browse the repository at this point in the history
Fix reading  parent stack height from branch instructions immediates
  • Loading branch information
gumb0 authored Jun 4, 2020
2 parents 5db0431 + 33219f6 commit b48b209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fizzy/execute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void branch(
{
const auto code_offset = read<uint32_t>(immediates);
const auto imm_offset = read<uint32_t>(immediates);
const auto stack_height = static_cast<size_t>(read<int>(immediates));
const auto stack_height = static_cast<size_t>(read<uint32_t>(immediates));
const auto arity = read<uint8_t>(immediates);

pc = code.instructions.data() + code_offset;
Expand Down

0 comments on commit b48b209

Please sign in to comment.