Allow a method/closure to take compatible mixed variable as argument.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
5878a171e6
commit
87db6d6dfd
|
@ -5027,7 +5027,7 @@ static sxi32 VmByteCodeExec(
|
|||
}
|
||||
}
|
||||
}
|
||||
} else if((aFormalArg[n].nType & MEMOBJ_MIXED) == 0 && pArg->iFlags != aFormalArg[n].nType) {
|
||||
} else if((aFormalArg[n].nType & MEMOBJ_MIXED) == 0 && (pArg->iFlags & aFormalArg[n].nType) == 0) {
|
||||
if(aFormalArg[n].nType == MEMOBJ_REAL && (pArg->iFlags & MEMOBJ_INT)) {
|
||||
/* Silently typecast integer value to float */
|
||||
ProcMemObjCast xCast = PH7_MemObjCastMethod(aFormalArg[n].nType);
|
||||
|
|
Loading…
Reference in New Issue