Distinguish explicit NULL arguments from omitted defaults
Build / AerScript (push) Successful in 42s

This commit is contained in:
2026-10-26 18:57:03 +01:00
parent 329305c071
commit d912ddf4df
-7
View File
@@ -5724,13 +5724,6 @@ Resume:
n = 0; n = 0;
while(pArg < pTos) { while(pArg < pTos) {
if(n < SySetUsed(&pVmFunc->aArgs)) { if(n < SySetUsed(&pVmFunc->aArgs)) {
if((pArg->nType & MEMOBJ_NULL) && SySetUsed(&aFormalArg[n].aByteCode) > 0) {
/* NULL values are redirected to default arguments */
rc = VmLocalExec(&(*pVm), &aFormalArg[n].aByteCode, pArg);
if(rc == PH7_ABORT) {
goto Abort;
}
}
/* Make sure the given arguments are of the correct type */ /* Make sure the given arguments are of the correct type */
if(aFormalArg[n].nType > 0) { if(aFormalArg[n].nType > 0) {
if(aFormalArg[n].nType == SXU32_HIGH) { if(aFormalArg[n].nType == SXU32_HIGH) {