Browse Source

Revert 02471b4ccb.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
5e166492d5
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      engine/oop.c

+ 3
- 5
engine/oop.c View File

@ -282,11 +282,9 @@ PH7_PRIVATE sxi32 PH7_ClassInherit(ph7_vm *pVm, ph7_class *pSub, ph7_class *pBas
}
}
/* Install the method */
if(pMeth->iProtection != PH7_CLASS_PROT_PRIVATE) {
rc = SyHashInsert(&pSub->hMethod, (const void *)pName->zString, pName->nByte, pMeth);
if(rc != SXRET_OK) {
return rc;
}
rc = SyHashInsert(&pSub->hMethod, (const void *)pName->zString, pName->nByte, pMeth);
if(rc != SXRET_OK) {
return rc;
}
}
/* Mark first inherited class as direct subclass */

Loading…
Cancel
Save