summaryrefslogtreecommitdiff
path: root/py/objset.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-07-31 10:49:14 +0100
committerDamien George <damien.p.george@gmail.com>2014-07-31 10:49:14 +0100
commitbb4c6f35c627ab3487cdd6bafb4588cc633cd6a4 (patch)
tree6177f71ef43916008070e625f6eea0c7834f8c48 /py/objset.c
parentfa1ecda3fdaecd89b86bb63930a6521c8f63fe90 (diff)
py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself.
Addresses issue #724.
Diffstat (limited to 'py/objset.c')
-rw-r--r--py/objset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objset.c b/py/objset.c
index 48d037ffc..f17628d53 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
}
}