From 3980699f546be11dc2387cf347cd777a0cd45338 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 23 Oct 2007 04:44:15 +0000 Subject: [PATCH] * parse.y (call_args2): nd_head of NODE_BLOCK_PASS should be a list. [ruby-core:12850] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ parse.y | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6e66bc1c7c..4f8312e80a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Oct 23 13:44:14 2007 Nobuyoshi Nakada + + * parse.y (call_args2): nd_head of NODE_BLOCK_PASS should be a list. + [ruby-core:12850] + Tue Oct 23 10:42:51 2007 Nobuyoshi Nakada * ruby.c (process_options): encoding set by command line option takes diff --git a/parse.y b/parse.y index 8653fed1d8..8a46f2d71d 100644 --- a/parse.y +++ b/parse.y @@ -2341,7 +2341,7 @@ call_args2 : arg_value ',' args opt_block_arg | arg_value ',' block_arg { /*%%%*/ - $$ = arg_blk_pass($1, $3); + $$ = arg_blk_pass(NEW_LIST($1), $3); /*% $$ = arg_add_block(arg_add(arg_new(), $1), $3); %*/