summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-04-19 04:57:58 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-04-19 04:57:58 +0000
commit2835df5a05a011c88e45a60c7a2728e62a3c3dfd (patch)
tree0acc31dae376ec140504c589c18d22baf0a5561b /parse.y
parent1d3fd0024d2e8821e863a39c53c38dfea65b6fa6 (diff)
* parse.y (arg): too much NEW_LIST()
* eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 608da7e820..b6ee2c5a8d 100644
--- a/parse.y
+++ b/parse.y
@@ -542,7 +542,7 @@ stmt : kALIAS fitem {lex_state = EXPR_FNAME;} fitem
NODE *args;
value_expr($6);
- args = arg_concat(NEW_LIST($6), $3);
+ args = arg_concat($6, $3);
if ($5 == tOROP) {
$5 = 0;
}
@@ -1009,7 +1009,7 @@ arg : lhs '=' arg
NODE *args;
value_expr($6);
- args = arg_concat(NEW_LIST($6), $3);
+ args = arg_concat($6, $3);
if ($5 == tOROP) {
$5 = 0;
}