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

ruby-changes:67157

From: Nobuyoshi <ko1@a...>
Date: Sat, 14 Aug 2021 23:13:41 +0900 (JST)
Subject: [ruby-changes:67157] 97efd48fb1 (master): Get rid of unintented recursion when RUBY_DEBUG

https://git.ruby-lang.org/ruby.git/commit/?id=97efd48fb1

From 97efd48fb1187995ab66a8ad386fb6d0c16e02a3 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 14 Aug 2021 14:07:40 +0900
Subject: Get rid of unintented recursion when RUBY_DEBUG

---
 error.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/error.c b/error.c
index 4518833..f231c74 100644
--- a/error.c
+++ b/error.c
@@ -1006,7 +1006,7 @@ rb_check_type(VALUE x, int t) https://github.com/ruby/ruby/blob/trunk/error.c#L1006
     }
 
     xt = TYPE(x);
-    if (xt != t || (xt == T_DATA && RTYPEDDATA_P(x))) {
+    if (xt != t || (xt == T_DATA && rbimpl_rtypeddata_p(x))) {
         /*
          * Typed data is not simple `T_DATA`, but in a sense an
          * extension of `struct RVALUE`, which are incompatible with
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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