summaryrefslogtreecommitdiff
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-23 12:06:53 +0100
committerDamien George <damien.p.george@gmail.com>2014-10-23 12:06:53 +0100
commit3aa09f5784bf06f2b23b0d0082cd244af53ca8a9 (patch)
treece74cbf835dbc40e08c133089c6701fb9d5fc7f2 /py/runtime.c
parent37378f8a9d2b358fdde0f3451d816b7f506846cc (diff)
py: Use MP_OBJ_NULL instead of NULL in a few places.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 6efab0480..8acd09980 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -475,8 +475,8 @@ mp_obj_t mp_binary_op(mp_uint_t op, mp_obj_t lhs, mp_obj_t rhs) {
}
if (type->getiter != NULL) {
/* second attempt, walk the iterator */
- mp_obj_t next = NULL;
mp_obj_t iter = mp_getiter(rhs);
+ mp_obj_t next;
while ((next = mp_iternext(iter)) != MP_OBJ_STOP_ITERATION) {
if (mp_obj_equal(next, lhs)) {
return mp_const_true;