diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-24 14:05:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-24 14:05:45 +0000 |
commit | 0e3822c1e2e81baa96793e881cbbdfc2db7aba3a (patch) | |
tree | 9ae25a4feecf5ac73e5668c84b922180d0aad91a /variable.c | |
parent | e6a4a8018d1fd070cae7db533840aaa0dbcbe8ec (diff) | |
download | ruby-0e3822c1e2e81baa96793e881cbbdfc2db7aba3a.tar.gz |
* variable.c (rb_const_defined_0): fix autoloading base.
[ruby-core:35509]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index 505758c0c0..7f813ad6d4 100644 --- a/variable.c +++ b/variable.c @@ -1816,7 +1816,7 @@ rb_const_defined_0(VALUE klass, ID id, int exclude, int recurse, int visibility) if (visibility && ce->flag == CONST_PRIVATE) { return (int)Qfalse; } - if (ce->value == Qundef && !autoload_node((VALUE)klass, id, 0)) + if (ce->value == Qundef && !autoload_node(tmp, id, 0)) return (int)Qfalse; return (int)Qtrue; } |