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
commita6f372d1295a5f6a4afe05097ebe77d41ee82425 (patch)
treee160591fa4edc219bdd7e9dfb6a7ded911c134fc /parse.y
parent6f33cde636eb88e3e9f3c4f4d436137c52cd4cfb (diff)
downloadruby-a6f372d1295a5f6a4afe05097ebe77d41ee82425.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);