From: Stefan Behnel Date: Tue, 9 Nov 2010 09:24:46 +0000 (+0100) Subject: minor code cleanup X-Git-Tag: 0.14.alpha0~198 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ff71b6400adc8538c06dd77c3fcb7f98c0ec517a;p=cython.git minor code cleanup --- diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index 0662ef0b..29c17a59 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -36,7 +36,7 @@ static CYTHON_INLINE PyObject *__Pyx_PyIter_Next2(PyObject* iterator, PyObject* "%.200s object is not an iterator", iterator->ob_type->tp_name); return NULL; } - next = (*iterator->ob_type->tp_iternext)(iterator); + next = (*(Py_TYPE(iterator)->tp_iternext))(iterator); if (likely(next)) { return next; } else if (defval) {