summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--py/objnone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objnone.c b/py/objnone.c
index 69eab03fe2..74c02e4d29 100644
--- a/py/objnone.c
+++ b/py/objnone.c
@@ -46,7 +46,7 @@ STATIC void none_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_
STATIC mp_obj_t none_unary_op(mp_uint_t op, mp_obj_t o_in) {
(void)o_in;
switch (op) {
- case MP_UNARY_OP_BOOL: return mp_const_false;
+ // MP_UNARY_OP_BOOL is handled by a fast-path in mp_obj_is_true
case MP_UNARY_OP_HASH: return MP_OBJ_NEW_SMALL_INT((mp_uint_t)o_in);
default: return MP_OBJ_NULL; // op not supported
}