summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/genobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c
index 2a5a0d9..3c32e7b 100644
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -531,7 +531,7 @@ gen_get_iter(PyGenObject *gen)
}
Py_INCREF(gen);
- return gen;
+ return (PyObject *)gen;
}
static int