From ff71b6400adc8538c06dd77c3fcb7f98c0ec517a Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 9 Nov 2010 10:24:46 +0100 Subject: [PATCH] minor code cleanup --- Cython/Compiler/Builtin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.26.2