Set proper type for all class attributes.
All checks were successful
The build was successful.

This commit is contained in:
2019-03-29 09:00:55 +01:00
parent a013cee2d1
commit 140bd35f93
5 changed files with 10 additions and 7 deletions

View File

@@ -695,6 +695,7 @@ PH7_PRIVATE sxi32 PH7_VmCreateClassInstanceFrame(
SyMemBackendPoolFree(&pVm->sAllocator, pVmAttr);
return SXERR_MEM;
}
MemObjSetType(pMemObj, pAttr->nType);
pVmAttr->nIdx = pMemObj->nIdx;
if(SySetUsed(&pAttr->aByteCode) > 0) {
/* Initialize attribute default value (any complex expression) */