From 9bcbc9060543659c4ae14b64929cec33cddb60b7 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 30 Sep 2008 07:54:02 +0000 Subject: [PATCH] * parse.y (stmt): returns non zero. [ruby-dev:36633] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ parse.y | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 76f389041c..397a84214d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Sep 30 16:53:55 2008 Nobuyoshi Nakada + + * parse.y (stmt): returns non zero. [ruby-dev:36633] + Tue Sep 30 13:19:01 2008 Eric Hodel * test/rubygems/test_gem_installer.rb: remove extra call to setup to diff --git a/parse.y b/parse.y index ad4c8c3c6b..6b2914208a 100644 --- a/parse.y +++ b/parse.y @@ -979,7 +979,7 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem $4); /* NEW_PREEXE($4)); */ /* local_pop(); */ - $$ = 0; + $$ = NEW_BEGIN(0); /*% $$ = dispatch1(BEGIN, $4); %*/