diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-11-10 02:25:57 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2019-11-11 16:47:50 +0900 |
commit | 9142f802f1126d65abb1aad5e2bc91b5b833fe7e (patch) | |
tree | e5dba88ee600bb22bb9b192890ae111d38d36a73 /vm_insnhelper.c | |
parent | 65f7e3156f66bb4eba944c8ad2a463b9452b1a29 (diff) |
rewrite comment.
Pointed by nagachika-san.
https://ruby-trunk-changes.hatenablog.com/entry/ruby_trunk_changes_20191109
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 898b1937a0..5c83c343cc 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -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; |