Put comment in right place.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2018-09-24 13:39:50 +02:00
parent f26095658d
commit 6e7bc74949
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 1 additions and 1 deletions

View File

@ -314,10 +314,10 @@ static sxi32 MemObjBooleanValue(ph7_value *pObj) {
ph7_value sResult;
sxi32 iVal = 1;
sxi32 rc;
/* Invoke the __toBool() method if available [note that this is a symisc extension] */
if(!pObj->x.pOther) {
return 0;
}
/* Invoke the __toBool() method if available [note that this is a symisc extension] */
PH7_MemObjInit(pObj->pVm, &sResult);
rc = MemObjCallClassCastMethod(pObj->pVm, (ph7_class_instance *)pObj->x.pOther,
"__toBool", sizeof("__toBool") - 1, &sResult);