I hope this finally fixes the default argument value.
All checks were successful
The build was successful.

This commit is contained in:
2019-04-10 18:32:53 +02:00
parent 527a6ad689
commit 2a4e47e782
2 changed files with 44 additions and 15 deletions

View File

@@ -2891,8 +2891,10 @@ static sxi32 PH7_GenStateCollectFuncArgs(ph7_vm_func *pFunc, ph7_gen_state *pGen
if(zDup) {
sArg.nType = SXU32_HIGH; /* 0xFFFFFFFF as sentinel */
SyStringInitFromBuf(&sArg.sClass, zDup, pName->nByte);
} else {
/* This should not happen, but fallback to object anyway */
sArg.nType = MEMOBJ_OBJ;
}
sArg.nType = MEMOBJ_OBJ;
}
pIn++;
if((pIn->nType & PH7_TK_OSB) && &pIn[1] < pEnd && (pIn[1].nType & PH7_TK_CSB)) {