From 9142f802f1126d65abb1aad5e2bc91b5b833fe7e Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Sun, 10 Nov 2019 02:25:57 +0900 Subject: [PATCH] rewrite comment. Pointed by nagachika-san. https://ruby-trunk-changes.hatenablog.com/entry/ruby_trunk_changes_20191109 --- vm_insnhelper.c | 7 +++---- 1 file 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;