mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress uninitialized instance variable warnings
This commit is contained in:
parent
ad38f02645
commit
2a8be8ec33
1 changed files with 1 additions and 1 deletions
|
@ -692,7 +692,7 @@ static VALUE cState_aref(VALUE self, VALUE name)
|
|||
if (RTEST(rb_funcall(self, i_respond_to_p, 1, name))) {
|
||||
return rb_funcall(self, i_send, 1, name);
|
||||
} else {
|
||||
return rb_ivar_get(self, rb_intern_str(rb_str_concat(rb_str_new2("@"), name)));
|
||||
return rb_attr_get(self, rb_intern_str(rb_str_concat(rb_str_new2("@"), name)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue