Use P2 to avoid strict typehinting.
All checks were successful
The build was successful.

This commit is contained in:
2019-04-02 09:55:01 +02:00
parent 2fb123872f
commit c6397d2e15
2 changed files with 3 additions and 3 deletions

View File

@@ -2010,7 +2010,7 @@ static sxi32 VmByteCodeExec(
*/
switch(pInstr->iOp) {
/*
* DONE: P1 * *
* DONE: P1 P2 *
*
* Program execution completed: Clean up the mess left behind
* and return immediately.
@@ -2028,7 +2028,7 @@ static sxi32 VmByteCodeExec(
if(pResult) {
/* Execution result */
PH7_MemObjStore(pTos, pResult);
if(pVm->pFrame->iFlags & VM_FRAME_ACTIVE) {
if(!pInstr->iP2 && pVm->pFrame->iFlags & VM_FRAME_ACTIVE) {
ph7_vm_func *pFunc = (ph7_vm_func *)pVm->pFrame->pUserData;
if(pFunc->nType) {
if((pFunc->nType & MEMOBJ_MIXED) == 0) {