diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-18 04:35:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-18 04:35:25 +0000 |
commit | 20685cdc85ff218093194176a20b9568c98254e7 (patch) | |
tree | 173c7711b791dbd6cca60d7448094e968d8e8f88 /enumerator.c | |
parent | 593d9786464c94db9c776a5a968dcf65cbc1d9d4 (diff) |
Get rid of shadowing local variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/enumerator.c b/enumerator.c index a996566b7b..d61d79e897 100644 --- a/enumerator.c +++ b/enumerator.c @@ -1119,11 +1119,11 @@ enumerator_size(VALUE obj) for (i = 0; i < RARRAY_LEN(e->procs); i++) { VALUE proc = RARRAY_AREF(e->procs, i); struct proc_entry *entry = proc_entry_ptr(proc); - lazyenum_size_func *size = entry->fn->size; - if (!size) { + lazyenum_size_func *size_fn = entry->fn->size; + if (!size_fn) { return Qnil; } - receiver = (*size)(proc, receiver); + receiver = (*size_fn)(proc, receiver); } return receiver; } |