From 5b9243dca7f0878d084024bd3541dbef06d74ba7 Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Thu, 7 Jul 2016 16:38:36 +0800 Subject: [PATCH] *polished code. --- core/my_basic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/my_basic.c b/core/my_basic.c index 35da98f..de915d9 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -6278,11 +6278,10 @@ static mb_meta_status_u _try_overridden_usertype_ref(mb_interpreter_t* s, void** _object_t obj; _MAKE_NIL(&obj); _public_value_to_internal_object(d, &obj); - if(t == MB_MF_COLL && obj.data.usertype_ref->coll_func) { + if(t == MB_MF_COLL && obj.data.usertype_ref->coll_func) return obj.data.usertype_ref->coll_func(s, l, f); - } else if(t == MB_MF_FUNC && obj.data.usertype_ref->generic_func) { + else if(t == MB_MF_FUNC && obj.data.usertype_ref->generic_func) return obj.data.usertype_ref->generic_func(s, l, f); - } } #endif /* MB_ENABLE_USERTYPE_REF */