From 6f7b3dccbd0429dcd86ef5d9b697acaa8249f064 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 4 Feb 2002 08:09:14 +0000 Subject: * object.c (rb_class_real): should not follow ICLASS link * variable.c (classname): should follow ICLASS link explicitly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index 35517e963..240a51c3f 100644 --- a/object.c +++ b/object.c @@ -75,9 +75,6 @@ VALUE rb_class_real(cl) VALUE cl; { - if (TYPE(cl) == T_ICLASS) { - cl = RBASIC(cl)->klass; - } while (FL_TEST(cl, FL_SINGLETON) || TYPE(cl) == T_ICLASS) { cl = RCLASS(cl)->super; } -- cgit