diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-26 19:27:58 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-26 19:27:58 +0000 |
commit | 66eaf84b8c2db6afad7ec49eb296a019a2f377df (patch) | |
tree | a05406b020ba4102ffd90fdfb5357a301b9de637 /py/objtuple.c | |
parent | 688e220d268609ec1a5be7a9b532637fe8c1f765 (diff) |
py: Replace mp_const_stop_iteration object with MP_OBJ_NULL.
Diffstat (limited to 'py/objtuple.c')
-rw-r--r-- | py/objtuple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objtuple.c b/py/objtuple.c index 3378b4ec1..68f5abefd 100644 --- a/py/objtuple.c +++ b/py/objtuple.c @@ -53,7 +53,7 @@ STATIC mp_obj_t tuple_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const m mp_obj_t iterable = rt_getiter(args[0]); mp_obj_t item; - while ((item = rt_iternext(iterable)) != mp_const_stop_iteration) { + while ((item = rt_iternext(iterable)) != MP_OBJ_NULL) { if (len >= alloc) { items = m_renew(mp_obj_t, items, alloc, alloc * 2); alloc *= 2; @@ -245,7 +245,7 @@ STATIC mp_obj_t tuple_it_iternext(mp_obj_t self_in) { self->cur += 1; return o_out; } else { - return mp_const_stop_iteration; + return MP_OBJ_NULL; } } |