summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/decompiler-ast.h2
-rw-r--r--src/interp/interp.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/decompiler-ast.h b/src/decompiler-ast.h
index 553c938b..a8080553 100644
--- a/src/decompiler-ast.h
+++ b/src/decompiler-ast.h
@@ -219,7 +219,7 @@ struct AST {
cur_block_id = blocks_closed.size();
blocks_closed.push_back(false);
auto start = exp_stack.size();
- auto value_stack_depth_start = value_stack_depth - nparams;
+ int value_stack_depth_start = value_stack_depth - nparams;
auto value_stack_in_variables = value_stack_depth;
bool unreachable = false;
for (auto& e : es) {
diff --git a/src/interp/interp.cc b/src/interp/interp.cc
index f73ec35f..b72390d6 100644
--- a/src/interp/interp.cc
+++ b/src/interp/interp.cc
@@ -1740,7 +1740,7 @@ RunResult Thread::Load(Instr instr, T* out, Trap::Ptr* out_trap) {
u64 offset = memory->type().limits.is_64 ? Pop<u64>() : Pop<u32>();
TRAP_IF(Failed(memory->Load(offset, instr.imm_u32x2.snd, out)),
StringPrintf("out of bounds memory access: access at %" PRIu64
- "+%" PRIzd " >= max value %u",
+ "+%" PRIzd " >= max value %" PRIu64,
offset + instr.imm_u32x2.snd, sizeof(T),
memory->ByteSize()));
return RunResult::Ok;
@@ -1763,7 +1763,7 @@ RunResult Thread::DoStore(Instr instr, Trap::Ptr* out_trap) {
u64 offset = memory->type().limits.is_64 ? Pop<u64>() : Pop<u32>();
TRAP_IF(Failed(memory->Store(offset, instr.imm_u32x2.snd, val)),
StringPrintf("out of bounds memory access: access at %" PRIu64
- "+%" PRIzd " >= max value %u",
+ "+%" PRIzd " >= max value %" PRIu64,
offset + instr.imm_u32x2.snd, sizeof(V),
memory->ByteSize()));
return RunResult::Ok;