Store class directly in function container.
All checks were successful
The build was successful.

This commit is contained in:
2019-05-22 08:33:56 +02:00
parent 5b2f300fe4
commit e654e42b07
2 changed files with 2 additions and 2 deletions

View File

@@ -192,7 +192,7 @@ PH7_PRIVATE sxi32 PH7_ClassInstallAttr(ph7_class *pClass, ph7_class_attr *pAttr)
PH7_PRIVATE sxi32 PH7_ClassInstallMethod(ph7_class *pClass, ph7_class_method *pMeth) {
SyString *pName = &pMeth->sFunc.sName;
sxi32 rc;
pMeth->pClass = pClass;
pMeth->sFunc.pClass = pClass;
rc = SyHashInsert(&pClass->hMethod, (const void *)pName->zString, pName->nByte, pMeth);
return rc;
}