Typehinting merge #50

Merged
belliash merged 298 commits from typehinting into master 2019-04-17 11:27:52 +02:00
Showing only changes of commit f3d10dd4bc - Show all commits

View File

@ -5506,7 +5506,10 @@ PH7_PRIVATE sxi32 PH7_VmByteCodeExec(ph7_vm *pVm) {
/* Call entry point */ /* Call entry point */
PH7_VmCallClassMethod(&(*pVm), pInstance, pMethod, &pResult, 1, &pArgs); PH7_VmCallClassMethod(&(*pVm), pInstance, pMethod, &pResult, 1, &pArgs);
if(!pVm->iExitStatus) { if(!pVm->iExitStatus) {
pVm->iExitStatus = ph7_value_to_int(&pResult); if(pMethod->sFunc.nType == MEMOBJ_INT) {
pVm->iExitStatus = ph7_value_to_int(&pResult);
} else {
pVm->iExitStatus = 0;
} }
/* Invoke any shutdown callbacks */ /* Invoke any shutdown callbacks */
VmInvokeShutdownCallbacks(&(*pVm)); VmInvokeShutdownCallbacks(&(*pVm));