aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index f6a7b5dfb1..c2b17532a9 100644
--- a/eval.c
+++ b/eval.c
@@ -1066,7 +1066,7 @@ rb_using_refinement(NODE *cref, VALUE klass, VALUE module)
}
if (!NIL_P(c = rb_hash_lookup(cref->nd_refinements, klass))) {
superclass = c;
- while (c && TYPE(c) == T_ICLASS) {
+ while (c && RB_TYPE_P(c, T_ICLASS)) {
if (RBASIC(c)->klass == module) {
/* already used refinement */
return;
@@ -1127,7 +1127,7 @@ add_activated_refinement(VALUE activated_refinements,
if (!NIL_P(c = rb_hash_lookup(activated_refinements, klass))) {
superclass = c;
- while (c && TYPE(c) == T_ICLASS) {
+ while (c && RB_TYPE_P(c, T_ICLASS)) {
if (RBASIC(c)->klass == refinement) {
/* already used refinement */
return;