Commit 0ebf5c0a authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

local variable order was screwed up in parser_init_cxt(); close #360

parent 1855c7ae
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment