aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 800159bee7..122fe30fd0 100644
--- a/thread.c
+++ b/thread.c
@@ -733,7 +733,7 @@ thread_join(rb_thread_t *target_th, double delay)
if (FIXNUM_P(err)) {
/* */
}
- else if (TYPE(target_th->errinfo) == T_NODE) {
+ else if (RB_TYPE_P(target_th->errinfo, T_NODE)) {
rb_exc_raise(rb_vm_make_jump_tag_but_local_jump(
GET_THROWOBJ_STATE(err), GET_THROWOBJ_VAL(err)));
}