From 751a9b32e5a53336768eb878de1827245a3292bf Mon Sep 17 00:00:00 2001 From: Yusuke Endoh 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. --- vm_args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_args.c b/vm_args.c index 41824527de..c6c111865e 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 { 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 v1.2.3