diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-28 06:36:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-28 06:36:13 +0000 |
commit | a4f838c742dc758de8dec0c002e20d22c791b85a (patch) | |
tree | ce5e151c9bea826b4b09c2380e995d640e6c25ef /variable.c | |
parent | 72ff61f4a8ae7a8bf05b0bd6f91b3b290645627c (diff) | |
download | ruby-a4f838c742dc758de8dec0c002e20d22c791b85a.tar.gz |
error.c: receiver in NameError
* error.c (rb_name_err_new): store the receiver directly.
* error.c (name_err_receiver): return directly stored receiver.
[Feature #10881]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52322 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 97c0932e34..7f3b777f6e 100644 --- a/variable.c +++ b/variable.c @@ -1224,7 +1224,7 @@ gen_ivtbl_count(const struct gen_ivtbl *ivtbl) return n; } -static VALUE +VALUE rb_ivar_lookup(VALUE obj, ID id, VALUE undef) { VALUE val, *ptr; |