File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ STATIC mp_obj_t mp_builtin___repl_print__(mp_obj_t o) {
9999
100100MP_DEFINE_CONST_FUN_OBJ_1 (mp_builtin___repl_print___obj , mp_builtin___repl_print__ );
101101
102- mp_obj_t mp_builtin_abs (mp_obj_t o_in ) {
102+ STATIC mp_obj_t mp_builtin_abs (mp_obj_t o_in ) {
103103 if (MP_OBJ_IS_SMALL_INT (o_in )) {
104104 mp_int_t val = MP_OBJ_SMALL_INT_VALUE (o_in );
105105 if (val < 0 ) {
@@ -286,7 +286,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_iter_obj, mp_builtin_iter);
286286
287287STATIC mp_obj_t mp_builtin_len (mp_obj_t o_in ) {
288288 mp_obj_t len = mp_obj_len_maybe (o_in );
289- if (len == NULL ) {
289+ if (len == MP_OBJ_NULL ) {
290290 nlr_raise (mp_obj_new_exception_msg_varg (& mp_type_TypeError , "object of type '%s' has no len()" , mp_obj_get_type_str (o_in )));
291291 } else {
292292 return len ;
You can’t perform that action at this time.
0 commit comments