summaryrefslogtreecommitdiff
path: root/vm_exec.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-20 23:25:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-20 23:57:20 +0900
commitfe1e623faea75952f27baa949a7468021443c12a (patch)
treef4b7e319583f48d7e444b859945687375f7c925f /vm_exec.h
parente47b111627d5c68b8900f57364fecd51cbcd0268 (diff)
Fixed format specifiers
Use PRIdPTRDIFF for the platforms where a pointer is larger than a long.
Diffstat (limited to 'vm_exec.h')
-rw-r--r--vm_exec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_exec.h b/vm_exec.h
index 85ab420cc9..9c8b42371d 100644
--- a/vm_exec.h
+++ b/vm_exec.h
@@ -71,7 +71,7 @@ error !
#define LABEL_PTR(x) RB_GNUC_EXTENSION(&&LABEL(x))
#define INSN_ENTRY_SIG(insn) \
- if (0) fprintf(stderr, "exec: %s@(%ld, %ld)@%s:%u\n", #insn, \
+ if (0) fprintf(stderr, "exec: %s@(%"PRIdPTRDIFF", %"PRIdPTRDIFF")@%s:%u\n", #insn, \
(reg_pc - reg_cfp->iseq->body->iseq_encoded), \
(reg_cfp->pc - reg_cfp->iseq->body->iseq_encoded), \
RSTRING_PTR(rb_iseq_path(reg_cfp->iseq)), \