summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-29 05:20:37 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-29 05:20:37 +0000
commite6540a035efb692f66ceead14a301f92b560bdd4 (patch)
treedbd800f08bfff7d2e59e87f5edad5e68f4da7e28 /variable.c
parent3cd9a01e6f82620f6a9af425fc345c3c4e38b536 (diff)
downloadbundler-e6540a035efb692f66ceead14a301f92b560bdd4.tar.gz
* variable.c (rb_const_get_0): should not look for superclasses if
the second optional argument is given for #const_get(). fix [Bug #3422] [Bug #3423] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 2de5eccf93..ef7e3f6138 100644
--- a/variable.c
+++ b/variable.c
@@ -1613,7 +1613,7 @@ rb_const_get_0(VALUE klass, ID id, int exclude, int recurse, int visibility)
}
return value;
}
- if (!recurse && klass != rb_cObject) break;
+ if (!recurse) break;
tmp = RCLASS_SUPER(tmp);
}
if (!exclude && !mod_retry && BUILTIN_TYPE(klass) == T_MODULE) {