py: Use MP_OBJ_NULL instead of NULL in a few places.

This commit is contained in:
Damien George
2014-10-23 12:06:53 +01:00
parent 37378f8a9d
commit 3aa09f5784
3 changed files with 3 additions and 3 deletions

View File

@@ -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;