Skip to content

Commit

Permalink
Fix call_indirect dump to correctly print values
Browse files Browse the repository at this point in the history
Signed-off-by: Ádám László Kulcsár <[email protected]>
  • Loading branch information
kulcsaradam authored and clover2123 committed Nov 14, 2024
1 parent 4387f6c commit f8d10d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interpreter/ByteCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -1147,13 +1147,13 @@ class CallIndirect : public ByteCode {
size_t c = 0;
auto arr = stackOffsets();
printf("paramOffsets: ");
for (size_t i = 0; i < m_functionType->param().size(); i++) {
for (size_t i = 0; i < m_parameterOffsetsSize; i++) {
printf("%" PRIu32 " ", (uint32_t)arr[c++]);
}
printf(" ");

printf("resultOffsets: ");
for (size_t i = 0; i < m_functionType->result().size(); i++) {
for (size_t i = 0; i < m_resultOffsetsSize; i++) {
printf("%" PRIu32 " ", (uint32_t)arr[c++]);
}
}
Expand Down

0 comments on commit f8d10d7

Please sign in to comment.