fix bug in runtime

This commit is contained in:
CismonX 2020-06-01 18:08:37 +08:00
parent 05849e02a9
commit 7a82c7e3b2
No known key found for this signature in database
GPG Key ID: 315D6652268C5007
1 changed files with 3 additions and 2 deletions

View File

@ -300,8 +300,9 @@ u6a_runtime_execute(FILE* restrict istream, FILE* restrict ostream) {
ACC_FN(arg);
break;
case u6a_vf_d1_c:
func = u6a_vm_pool_get1(func.ref).fn;
goto do_apply;
STACK_PUSH2(VM_VAR_JMP, vm_var_fn_addref(u6a_vm_pool_get1(func.ref).fn));
ACC_FN(arg);
VM_JMP(0x03);
case u6a_vf_d1_s:
tuple = u6a_vm_pool_get2(func.ref);
STACK_PUSH1(tuple.v1.fn);