ruby-changes:57809
From: Takashi <ko1@a...>
Date: Thu, 19 Sep 2019 17:31:43 +0900 (JST)
Subject: [ruby-changes:57809] f84efe4b9d (master): Avoid unneeded casts in INSN_ENTRY_SIG
https://git.ruby-lang.org/ruby.git/commit/?id=f84efe4b9d From f84efe4b9da8e16b0986b75ca24352639bc502ec Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Thu, 19 Sep 2019 17:30:31 +0900 Subject: Avoid unneeded casts in INSN_ENTRY_SIG diff --git a/vm_exec.h b/vm_exec.h index 577c5ea..85ab420 100644 --- a/vm_exec.h +++ b/vm_exec.h @@ -71,11 +71,11 @@ error ! https://github.com/ruby/ruby/blob/trunk/vm_exec.h#L71 #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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/