mirror of
https://github.com/micropython/micropython.git
synced 2025-09-03 16:30:34 +02:00
py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.
This commit is contained in:
@@ -131,7 +131,7 @@ STATIC mp_obj_t range_unary_op(mp_uint_t op, mp_obj_t self_in) {
|
||||
mp_obj_range_t *self = self_in;
|
||||
mp_int_t len = range_len(self);
|
||||
switch (op) {
|
||||
case MP_UNARY_OP_BOOL: return MP_BOOL(len > 0);
|
||||
case MP_UNARY_OP_BOOL: return mp_obj_new_bool(len > 0);
|
||||
case MP_UNARY_OP_LEN: return MP_OBJ_NEW_SMALL_INT(len);
|
||||
default: return MP_OBJ_NULL; // op not supported
|
||||
}
|
||||
|
Reference in New Issue
Block a user