summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
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