From 3aa09f5784bf06f2b23b0d0082cd244af53ca8a9 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 23 Oct 2014 12:06:53 +0100 Subject: py: Use MP_OBJ_NULL instead of NULL in a few places. --- py/runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/runtime.c') 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; -- cgit v1.2.3