mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fixed a bug in push back list; close #1298
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user