diff options
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index ffb36e9a00..ce1f0984d0 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -30,7 +30,7 @@ vm_push_frame(rb_thread_t * th, const rb_iseq_t * iseq, int i; /* setup vm value stack */ - + /* nil initialize */ for (i=0; i < local_size; i++) { *sp = Qnil; @@ -798,7 +798,7 @@ vm_yield_setup_block_args(rb_thread_t *th, const rb_iseq_t * iseq, else { int r = iseq->arg_rest; - if (iseq->arg_post_len || + if (iseq->arg_post_len || iseq->arg_opts) { /* TODO: implement simple version for (iseq->arg_post_len==0 && iseq->arg_opts > 0) */ opt_pc = vm_yield_setup_block_args_complex(th, iseq, argc, argv); } |