From b0dd250dc95ea0fae89c3201967039d582fbf156 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 23 May 2012 07:13:21 +0000 Subject: use RB_TYPE_P() instead of comparison of TYPE() git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') 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))); } -- cgit v1.2.3