Browse Source

Set data type to void, not just NULL.

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

+ 5
- 1
engine/memobj.c View File

@ -404,7 +404,11 @@ PH7_PRIVATE sxi32 PH7_MemObjSafeStore(ph7_value *pSrc, ph7_value *pDest) {
if(pDest->nType == 0 || pDest->nType == MEMOBJ_NULL || pDest->nType == pSrc->nType) {
PH7_MemObjStore(pSrc, pDest);
if(pDest->nType == 0 || pDest->nType == MEMOBJ_NULL) {
pDest->nType = pSrc->nType;
if(pSrc->nType == MEMOBJ_NULL) {
pDest->nType = MEMOBJ_VOID;
} else {
pDest->nType = pSrc->nType;
}
}
} else if(pDest->nType & MEMOBJ_MIXED) {
if(pDest->nType & MEMOBJ_HASHMAP) {


Loading…
Cancel
Save