Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Interpreter/instructions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ bool i_instr_tee_local(Module *m) {
bool i_instr_get_global(Module *m) {
int32_t arg = read_LEB_32(&m->pc_ptr);
#if TRACE
debug(" - arg: 0x%x, got %s\n", arg, value_repr(m->globals[arg]));
debug(" - arg: 0x%x, got %s\n", arg,
value_repr(m->globals[arg]->value));
#endif
m->stack[++m->sp] = *m->globals[arg]->value;
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/WARDuino/WARDuino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ void WARDuino::instantiate_module(Module *m, uint8_t *bytes,
" setting global %d (content_type %d) to "
"%p: %s\n",
m->global_count - 1, content_type, val,
value_repr(*glob));
value_repr((*glob)->value));
break;
}
default:
Expand Down
Loading