aboutsummaryrefslogtreecommitdiff
path: root/py/objmap.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-26 19:27:58 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-26 19:27:58 +0000
commit66eaf84b8c2db6afad7ec49eb296a019a2f377df (patch)
treea05406b020ba4102ffd90fdfb5357a301b9de637 /py/objmap.c
parent688e220d268609ec1a5be7a9b532637fe8c1f765 (diff)
py: Replace mp_const_stop_iteration object with MP_OBJ_NULL.
Diffstat (limited to 'py/objmap.c')
-rw-r--r--py/objmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/py/objmap.c b/py/objmap.c
index 2b356ec4e..cc7eae235 100644
--- a/py/objmap.c
+++ b/py/objmap.c
@@ -1,3 +1,4 @@
+#include <stdlib.h>
#include <assert.h>
#include "nlr.h"
@@ -40,9 +41,9 @@ STATIC mp_obj_t map_iternext(mp_obj_t self_in) {
for (int i = 0; i < self->n_iters; i++) {
mp_obj_t next = rt_iternext(self->iters[i]);
- if (next == mp_const_stop_iteration) {
+ if (next == MP_OBJ_NULL) {
m_del(mp_obj_t, nextses, self->n_iters);
- return mp_const_stop_iteration;
+ return MP_OBJ_NULL;
}
nextses[i] = next;
}