1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rewrite comment.

Pointed by nagachika-san.
https://ruby-trunk-changes.hatenablog.com/entry/ruby_trunk_changes_20191109
This commit is contained in:
Koichi Sasada 2019-11-10 02:25:57 +09:00
parent 65f7e3156f
commit 9142f802f1

View file

@ -2078,10 +2078,9 @@ vm_call_iseq_setup_kwparm_nokwarg(rb_execution_context_t *ec, rb_control_frame_t
klocals[i] = kw_param->default_values[i]; klocals[i] = kw_param->default_values[i];
} }
klocals[i] = INT2FIX(0); // kw specify flag klocals[i] = INT2FIX(0); // kw specify flag
// NOTE:
/* NOTE: don't need to setup (clear) unspecified bits // nobody check this value, but it should be cleared because it can
because no code check it. // points invalid VALUE (T_NONE objects, raw pointer and so on).
klocals[kw_param->num] = INT2FIX(0); */
int param = iseq->body->param.size; int param = iseq->body->param.size;
int local = iseq->body->local_table_size; int local = iseq->body->local_table_size;