fix #58
This commit is contained in:
parent
7ac4cd9ded
commit
067a4756ff
|
@ -1187,7 +1187,13 @@ codegen(codegen_state *state, pic_value obj)
|
||||||
}
|
}
|
||||||
else if (sym == pic->sBEGIN) {
|
else if (sym == pic->sBEGIN) {
|
||||||
pic_value elt;
|
pic_value elt;
|
||||||
|
int i = 0;
|
||||||
|
|
||||||
pic_for_each (elt, pic_cdr(pic, obj)) {
|
pic_for_each (elt, pic_cdr(pic, obj)) {
|
||||||
|
if (i++ != 0) {
|
||||||
|
cxt->code[cxt->clen].insn = OP_POP;
|
||||||
|
cxt->clen++;
|
||||||
|
}
|
||||||
codegen(state, elt);
|
codegen(state, elt);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue