From 97efd48fb1187995ab66a8ad386fb6d0c16e02a3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 14 Aug 2021 14:07:40 +0900 Subject: [PATCH] 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 4518833427..f231c7458c 100644 --- a/error.c +++ b/error.c @@ -1006,7 +1006,7 @@ rb_check_type(VALUE x, int t) } 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