Set correct variable type if NULL or not set at all.
Todas as verificações foram bem sucedidas
The build was successful.
Todas as verificações foram bem sucedidas
The build was successful.
Esse commit está contido em:
pai
343c25ca77
commit
43a1f135cc
@ -401,8 +401,11 @@ PH7_PRIVATE sxi32 PH7_CheckVarCompat(ph7_value *pObj, int nType) {
|
||||
* destination are of the compatible data types.
|
||||
*/
|
||||
PH7_PRIVATE sxi32 PH7_MemObjSafeStore(ph7_value *pSrc, ph7_value *pDest) {
|
||||
if(pDest->nType == 0 || pDest->nType == pSrc->nType) {
|
||||
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;
|
||||
}
|
||||
} else if(pDest->nType & MEMOBJ_MIXED) {
|
||||
if(pDest->nType & MEMOBJ_HASHMAP) {
|
||||
/* mixed[] */
|
||||
|
Carregando…
x
Referência em uma nova issue
Block a user