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] = INT2FIX(0); // kw specify flag
/* NOTE: don't need to setup (clear) unspecified bits
because no code check it.
klocals[kw_param->num] = INT2FIX(0); */
// NOTE:
// nobody check this value, but it should be cleared because it can
// points invalid VALUE (T_NONE objects, raw pointer and so on).
int param = iseq->body->param.size;
int local = iseq->body->local_table_size;