mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
make peek_n append p->pb to list
This commit is contained in:
+1
-1
@@ -3429,7 +3429,7 @@ peek_n(parser_state *p, int c, int n)
|
||||
list = push(list, (node*)(intptr_t)c0);
|
||||
} while(n--);
|
||||
if (p->pb) {
|
||||
p->pb = append(p->pb, (node*)list);
|
||||
p->pb = append((node*)list, p->pb);
|
||||
}
|
||||
else {
|
||||
p->pb = list;
|
||||
|
||||
Reference in New Issue
Block a user