diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-02-25 22:50:19 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-02-25 22:50:19 +0100 |
commit | e416740e189f4fec06da2db5ebcd30092eb50270 (patch) | |
tree | e942de67dabc7570d833e2db4e52f2d2abacec9b | |
parent | 679270fd3afa93cca84ab31b5041922037fec0c5 (diff) |
vm: use portable printf format for pointer differences
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -268,7 +268,7 @@ uc_vm_frame_dump(uc_vm *vm, uc_callframe *frame) uc_upvalref *ref; size_t i; - fprintf(stderr, " [*] CALLFRAME[%lx]\n", + fprintf(stderr, " [*] CALLFRAME[%zx]\n", frame - vm->callframes.entries); fprintf(stderr, " |- stackframe %zu/%zu\n", @@ -553,7 +553,7 @@ uc_dump_insn(uc_vm *vm, uint8_t *pos, enum insn_type insn) last_srcpos = srcpos; } - fprintf(stderr, "%08lx %s", pos - chunk->entries, insn_names[insn]); + fprintf(stderr, "%08zx %s", pos - chunk->entries, insn_names[insn]); switch (insn_defs[insn].operand_bytes) { case 0: |