aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-08 00:03:02 +0000
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-08 00:03:02 +0000
commit4526158b4c786357fb9392fddc37620c13ccd725 (patch)
treee160591fa4edc219bdd7e9dfb6a7ded911c134fc /parse.y
parent072bef600b68353a34e60f57a68f8d61a36d57a4 (diff)
downloadruby-4526158b4c786357fb9392fddc37620c13ccd725.tar.gz
Omit first argument of NEW_CASE2
* node.h (NEW_CASE2): Omit first argument of NEW_CASE2, bacause the first argument of NEW_CASE2 is always 0. * parse.y: Ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index ef08c50702..9bece4ae3a 100644
--- a/parse.y
+++ b/parse.y
@@ -2911,7 +2911,7 @@ primary : literal
| k_case opt_terms case_body k_end
{
/*%%%*/
- $$ = NEW_CASE2(0, $3);
+ $$ = NEW_CASE2($3);
nd_set_line($3, $<num>1);
nd_set_lineno($$, @1.first_line);
nd_set_column($$, @1.first_column);