*used _MAKE_NIL.
This commit is contained in:
parent
3f570396c9
commit
3cdb490ab1
@ -9199,7 +9199,6 @@ static int _clone_object(mb_interpreter_t* s, _object_t* obj, _object_t* tgt, bo
|
|||||||
mb_assert(obj && tgt);
|
mb_assert(obj && tgt);
|
||||||
|
|
||||||
_MAKE_NIL(tgt);
|
_MAKE_NIL(tgt);
|
||||||
tgt->type = _DT_NIL;
|
|
||||||
if(_is_internal_object(obj))
|
if(_is_internal_object(obj))
|
||||||
goto _exit;
|
goto _exit;
|
||||||
tgt->type = obj->type;
|
tgt->type = obj->type;
|
||||||
@ -9215,8 +9214,7 @@ static int _clone_object(mb_interpreter_t* s, _object_t* obj, _object_t* tgt, bo
|
|||||||
#ifdef MB_ENABLE_USERTYPE_REF
|
#ifdef MB_ENABLE_USERTYPE_REF
|
||||||
case _DT_USERTYPE_REF:
|
case _DT_USERTYPE_REF:
|
||||||
if(!obj->data.usertype_ref->clone) {
|
if(!obj->data.usertype_ref->clone) {
|
||||||
tgt->type = MB_DT_NIL;
|
_MAKE_NIL(tgt);
|
||||||
tgt->data.integer = 0;
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user