From 3cdb490ab1f2b5d656a83e663b028b08fb425c40 Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Thu, 14 Sep 2017 11:33:24 +0800 Subject: [PATCH] *used _MAKE_NIL. --- core/my_basic.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/my_basic.c b/core/my_basic.c index 08db949..03235c0 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -9199,7 +9199,6 @@ static int _clone_object(mb_interpreter_t* s, _object_t* obj, _object_t* tgt, bo mb_assert(obj && tgt); _MAKE_NIL(tgt); - tgt->type = _DT_NIL; if(_is_internal_object(obj)) goto _exit; 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 case _DT_USERTYPE_REF: if(!obj->data.usertype_ref->clone) { - tgt->type = MB_DT_NIL; - tgt->data.integer = 0; + _MAKE_NIL(tgt); break; }