This should be an error, really.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-04-05 20:14:08 +02:00
parent 2de455aa01
commit 25001ae746
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 3 deletions

View File

@ -4928,9 +4928,9 @@ static sxi32 VmByteCodeExec(
if(pArg->nIdx == SXU32_HIGH) { if(pArg->nIdx == SXU32_HIGH) {
/* Expecting a variable,not a constant,raise an exception */ /* Expecting a variable,not a constant,raise an exception */
if((pArg->iFlags & (MEMOBJ_HASHMAP | MEMOBJ_OBJ | MEMOBJ_RES | MEMOBJ_NULL)) == 0) { if((pArg->iFlags & (MEMOBJ_HASHMAP | MEMOBJ_OBJ | MEMOBJ_RES | MEMOBJ_NULL)) == 0) {
PH7_VmThrowError(&(*pVm), PH7_CTX_WARNING, PH7_VmThrowError(&(*pVm), PH7_CTX_ERR,
"Function '%z',%d argument: Pass by reference,expecting a variable not a " "Function '%z', %d argument: Pass by reference, expecting a variable not a "
"constant, PH7 is switching to pass by value", &pVmFunc->sName, n + 1); "constant", &pVmFunc->sName, n + 1);
} }
/* Switch to pass by value */ /* Switch to pass by value */
pObj = VmExtractMemObj(&(*pVm), &aFormalArg[n].sName, FALSE, TRUE); pObj = VmExtractMemObj(&(*pVm), &aFormalArg[n].sName, FALSE, TRUE);