ruby-changes:59119
From: Yusuke <ko1@a...>
Date: Mon, 9 Dec 2019 12:31:02 +0900 (JST)
Subject: [ruby-changes:59119] 751a9b32e5 (master): vm_args.c (rb_warn_check): Use unique_id * 2 instead of unique_id
https://git.ruby-lang.org/ruby.git/commit/?id=751a9b32e5 From 751a9b32e5a53336768eb878de1827245a3292bf Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Mon, 9 Dec 2019 12:30:00 +0900 Subject: vm_args.c (rb_warn_check): Use unique_id * 2 instead of unique_id The function assumed that the LSB of `callee` was 0. diff --git a/vm_args.c b/vm_args.c index 4182452..c6c1118 100644 --- a/vm_args.c +++ b/vm_args.c @@ -597,7 +597,7 @@ static VALUE rb_warn_check(const rb_execution_context_t * const ec, const rb_ise https://github.com/ruby/ruby/blob/trunk/vm_args.c#L597 { if (!iseq) return 0; - const void *const callee = (void *)iseq->body->iseq_unique_id; + const void *const callee = (void *)(iseq->body->iseq_unique_id * 2); const rb_control_frame_t * const cfp = rb_vm_get_ruby_level_next_cfp(ec, ec->cfp); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/