diff options
author | Damien George <damien.p.george@gmail.com> | 2014-07-31 13:47:06 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-07-31 13:47:06 +0000 |
commit | 8cc2018d47bc15a1b10295965fc0ccd27c0dcbba (patch) | |
tree | 5e8ba4bed5de1f1973203b9cff2c8aab78b419fc /py/objset.c | |
parent | c9aa58e6381018cca2513e3468363af0b5442d1f (diff) | |
parent | bb4c6f35c627ab3487cdd6bafb4588cc633cd6a4 (diff) | |
download | micropython-8cc2018d47bc15a1b10295965fc0ccd27c0dcbba.tar.gz micropython-8cc2018d47bc15a1b10295965fc0ccd27c0dcbba.zip |
Merge branch 'master' of https://github.com/micropython/micropython
Diffstat (limited to 'py/objset.c')
-rw-r--r-- | py/objset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objset.c b/py/objset.c index 48d037ffc2..f17628d53e 100644 --- a/py/objset.c +++ b/py/objset.c @@ -476,7 +476,7 @@ STATIC mp_obj_t set_unary_op(int op, mp_obj_t self_in) { mp_obj_set_t *self = self_in; switch (op) { case MP_UNARY_OP_BOOL: return MP_BOOL(self->set.used != 0); - case MP_UNARY_OP_LEN: return MP_OBJ_NEW_SMALL_INT((mp_int_t)self->set.used); + case MP_UNARY_OP_LEN: return MP_OBJ_NEW_SMALL_INT(self->set.used); default: return MP_OBJ_NULL; // op not supported } } |