1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed format specifiers

Use PRIdPTRDIFF for the platforms where a pointer is larger than a long.
This commit is contained in:
Nobuyoshi Nakada 2019-09-20 23:25:18 +09:00
parent e47b111627
commit fe1e623fae
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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)), \