fixed a bug in push back list; close #1298

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-06-24 00:41:34 +09:00
parent 6e324a62e7
commit b01670a3d3
+1 -1
View File
@@ -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;