*polished code.

This commit is contained in:
Wang Renxin 2016-07-07 16:38:36 +08:00 committed by GitHub
parent 12f873b107
commit 5b9243dca7

View File

@ -6278,11 +6278,10 @@ static mb_meta_status_u _try_overridden_usertype_ref(mb_interpreter_t* s, void**
_object_t obj; _object_t obj;
_MAKE_NIL(&obj); _MAKE_NIL(&obj);
_public_value_to_internal_object(d, &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); 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); return obj.data.usertype_ref->generic_func(s, l, f);
}
} }
#endif /* MB_ENABLE_USERTYPE_REF */ #endif /* MB_ENABLE_USERTYPE_REF */