Always select an appropriate function to call
一些检查报告了错误
The build has failed.

It does not matter, if we call function, anonymouss function or method. It is important to select appropriate function to call everytime. Otherwise, if function or method is not overloaded it will call it regardless the number
and type of parameters it takes.
type
这个提交包含在:
Rafal Kupiec 2018-08-07 19:48:12 +02:00
父节点 34dd052f74
当前提交 bca4d1a2fa
签署人:: belliash
GPG 密钥 ID: 4E829243E0CFE6B4

查看文件

@ -5233,10 +5233,8 @@ static sxi32 VmByteCodeExec(
PH7_MemObjRelease(pTos);
break;
}
if(pVmFunc->pNextName) {
/* Function is candidate for overloading,select the appropriate function to call */
pVmFunc = VmOverload(&(*pVm), pVmFunc, pArg, (int)(pTos - pArg));
}
/* Always select an appropriate function to call */
pVmFunc = VmOverload(&(*pVm), pVmFunc, pArg, (int)(pTos - pArg));
/* Extract the formal argument set */
aFormalArg = (ph7_vm_func_arg *)SySetBasePtr(&pVmFunc->aArgs);
/* Create a new VM frame */