summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-10 18:53:28 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-10 18:53:28 (GMT)
commite2c50946986bd9ba29d21ecef9bd32831e760f4b (patch)
tree960c039cb2fd95aacaecfd49b1cddb526d4fbb46 /thread.c
parented130faf2878c383cab52fa5ed887837e04f303d (diff)
* eval_intern.h (THROW_DATA_P): use RB_TYPE_P() instead of
BUILTIN_TYPE(). * thread.c (thread_join): use THROW_DATA_P(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 0cfb4e7..bd51736 100644
--- a/thread.c
+++ b/thread.c
@@ -892,8 +892,8 @@ thread_join(rb_thread_t *target_th, double delay)
rb_bug("thread_join: Fixnum (%d) should not reach here.", FIX2INT(err));
}
}
- else if (RB_TYPE_P(target_th->errinfo, T_NODE)) {
- rb_bug("thread_join: NODE should not reach here.");
+ else if (THROW_DATA_P(target_th->errinfo)) {
+ rb_bug("thread_join: THROW_DATA should not reach here.");
}
else {
/* normal exception */