summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-06-24 00:41:34 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-06-24 00:41:34 +0900
commitb01670a3d391de3c7df868a8285e570564ea46cd (patch)
tree4fc65ec0f5049a57aca19e8798bd3640a239c40a
parent6e324a62e75d1062373185e5aa2a0b4293b667dc (diff)
downloadmruby-b01670a3d391de3c7df868a8285e570564ea46cd.tar.gz
mruby-b01670a3d391de3c7df868a8285e570564ea46cd.zip
fixed a bug in push back list; close #1298
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index f5dbdb6fd..1d5366d17 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -3293,7 +3293,7 @@ peek_n(parser_state *p, int c, int n)
list = push(list, (node*)(intptr_t)c0);
} while(n--);
if (p->pb) {
- p->pb = push(p->pb, (node*)list);
+ p->pb = append(p->pb, (node*)list);
}
else {
p->pb = list;