Implement __invoke dispatch and fix VM cleanup and allocator alignment
This commit is contained in:
+1
-1
@@ -942,7 +942,7 @@ PH7_PRIVATE sxi32 PH7_MemObjStore(ph7_value *pSrc, ph7_value *pDest) {
|
||||
((ph7_class_instance *)pSrc->x.pOther)->iRef++;
|
||||
}
|
||||
}
|
||||
if(pDest->nType & MEMOBJ_OBJ) {
|
||||
if((pDest->nType & (MEMOBJ_OBJ | MEMOBJ_HASHMAP)) == MEMOBJ_OBJ) {
|
||||
pObj = (ph7_class_instance *)pDest->x.pOther;
|
||||
}
|
||||
SyMemcpy((const void *) & (*pSrc), &(*pDest), sizeof(ph7_value) - (sizeof(ph7_vm *) + sizeof(SyBlob) + sizeof(sxu32)));
|
||||
|
||||
Reference in New Issue
Block a user