wrong length for call operation

This commit is contained in:
Yuichi Nishiwaki 2014-01-24 17:10:51 +09:00
parent 2126f5b453
commit 237e8c26a6
1 changed files with 1 additions and 1 deletions

View File

@ -1039,7 +1039,7 @@ codegen(codegen_state *state, pic_value obj)
codegen(state, pic_car(pic, obj));
}
cxt->code[cxt->clen].insn = (sym == state->sCALL) ? OP_CALL : OP_TAILCALL;
cxt->code[cxt->clen].u.i = len;
cxt->code[cxt->clen].u.i = len - 1;
cxt->clen++;
return;
}