diff options
Diffstat (limited to 'py/objnone.c')
-rw-r--r-- | py/objnone.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objnone.c b/py/objnone.c index d47452bb4d..69eab03fe2 100644 --- a/py/objnone.c +++ b/py/objnone.c @@ -47,6 +47,7 @@ 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; + case MP_UNARY_OP_HASH: return MP_OBJ_NEW_SMALL_INT((mp_uint_t)o_in); default: return MP_OBJ_NULL; // op not supported } } |