mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
local variable order was screwed up in parser_init_cxt(); close #360
This commit is contained in:
+3
-3
@@ -4683,11 +4683,11 @@ parser_init_cxt(parser_state *p, mrbc_context *cxt)
|
||||
if (cxt->lineno) p->lineno = cxt->lineno;
|
||||
if (cxt->filename) p->filename = cxt->filename;
|
||||
if (cxt->syms) {
|
||||
int len = cxt->slen;
|
||||
int i;
|
||||
|
||||
p->locals = cons(0,0);
|
||||
while (len--) {
|
||||
local_add_f(p, cxt->syms[len]);
|
||||
for (i=0; i<cxt->slen; i++) {
|
||||
local_add_f(p, cxt->syms[i]);
|
||||
}
|
||||
}
|
||||
p->capture_errors = cxt->capture_errors;
|
||||
|
||||
Reference in New Issue
Block a user