[前][次][番号順一覧][スレッド一覧]

ruby-changes:59121

From: Yusuke <ko1@a...>
Date: Mon, 9 Dec 2019 13:51:17 +0900 (JST)
Subject: [ruby-changes:59121] 39c7230a7a (master): Revert "vm_args.c (rb_warn_check): Use unique_id * 2 instead of unique_id"

https://git.ruby-lang.org/ruby.git/commit/?id=39c7230a7a

From 39c7230a7a7a039639d2cb3587c054554a1beb18 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Mon, 9 Dec 2019 13:49:17 +0900
Subject: Revert "vm_args.c (rb_warn_check): Use unique_id * 2 instead of
 unique_id"

This reverts commit 751a9b32e5a53336768eb878de1827245a3292bf.

diff --git a/vm_args.c b/vm_args.c
index c6c1118..4182452 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 * 2);
+    const void *const callee = (void *)iseq->body->iseq_unique_id;
 
     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/

[前][次][番号順一覧][スレッド一覧]