Skip to content

Commit 69c5fe1

Browse files
committed
py: Make a function static; replace NULL with MP_OBJ_NULL.
1 parent 2eb1f60 commit 69c5fe1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

py/builtin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ STATIC mp_obj_t mp_builtin___repl_print__(mp_obj_t o) {
9999

100100
MP_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

287287
STATIC 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;

0 commit comments

Comments
 (0)