From 6e7bc7494954179d2544ca2d892eb7067ad99162 Mon Sep 17 00:00:00 2001 From: belliash Date: Mon, 24 Sep 2018 13:39:50 +0200 Subject: [PATCH] Put comment in right place. --- engine/memobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/memobj.c b/engine/memobj.c index 617beaf..02216f2 100644 --- a/engine/memobj.c +++ b/engine/memobj.c @@ -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);