diff options
author | Takashi Kokubun <[email protected]> | 2019-09-19 17:30:31 +0900 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2019-09-19 17:30:31 +0900 |
commit | f84efe4b9da8e16b0986b75ca24352639bc502ec (patch) | |
tree | af14566a63a37949d94ef94838f33d622e317aa0 /vm_exec.h | |
parent | 7202bf9ed899677f43a01ecf9f671082268d2d88 (diff) |
Avoid unneeded casts in INSN_ENTRY_SIG
Diffstat (limited to 'vm_exec.h')
-rw-r--r-- | vm_exec.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -71,11 +71,11 @@ error ! #define LABEL_PTR(x) RB_GNUC_EXTENSION(&&LABEL(x)) #define INSN_ENTRY_SIG(insn) \ - if (0) fprintf(stderr, "exec: %s@(%d, %d)@%s:%d\n", #insn, \ - (int)(reg_pc - reg_cfp->iseq->body->iseq_encoded), \ - (int)(reg_cfp->pc - reg_cfp->iseq->body->iseq_encoded), \ - RSTRING_PTR(rb_iseq_path(reg_cfp->iseq)), \ - (int)(rb_iseq_line_no(reg_cfp->iseq, reg_pc - reg_cfp->iseq->body->iseq_encoded))); + if (0) fprintf(stderr, "exec: %s@(%ld, %ld)@%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)), \ + rb_iseq_line_no(reg_cfp->iseq, reg_pc - reg_cfp->iseq->body->iseq_encoded)); #define INSN_DISPATCH_SIG(insn) |