Store variable type in dedicated field.
All checks were successful
The build was successful.

This commit is contained in:
2019-05-21 14:49:36 +02:00
parent 0f4a666b89
commit 3cca5faa76
6 changed files with 393 additions and 393 deletions

View File

@@ -947,7 +947,7 @@ PH7_PRIVATE sxi32 PH7_CompileClosure(ph7_gen_state *pGen, sxi32 iCompileFlag) {
}
SyStringInitFromBuf(&sName, zName, nLen);
PH7_MemObjInitFromString(pGen->pVm, pObj, &sName);
pObj->iFlags = MEMOBJ_CALL;
pObj->nType = MEMOBJ_CALL;
/* Compile the closure body */
rc = PH7_GenStateCompileFunc(&(*pGen), &sName, 0, TRUE, &pAnonFunc);
if(rc == SXERR_ABORT) {