aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-06-27 15:43:12 +0000
committerMartin v. Löwis <martin@v.loewis.de>2004-06-27 15:43:12 +0000
commit8d97e33bb76c322cdb08dbf97c26d787cd3488a7 (patch)
tree541e1e94d1ea749335af5fe68a9f469d6286b62c /Objects/genobject.c
parentMention Py_RETURN_NONE when introducing the idiom of how to have a function (diff)
downloadcpython-8d97e33bb76c322cdb08dbf97c26d787cd3488a7.tar.gz
cpython-8d97e33bb76c322cdb08dbf97c26d787cd3488a7.tar.bz2
cpython-8d97e33bb76c322cdb08dbf97c26d787cd3488a7.zip
Patch #966493: Cleanup generator/eval_frame exposure.
Diffstat (limited to 'Objects/genobject.c')
-rw-r--r--Objects/genobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c
index a604bcbccdd..66a5106487a 100644
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -44,7 +44,7 @@ gen_iternext(PyGenObject *gen)
f->f_back = tstate->frame;
gen->gi_running = 1;
- result = PyEval_EvaluateFrame((PyObject *)f);
+ result = PyEval_EvalFrame(f);
gen->gi_running = 0;
/* Don't keep the reference to f_back any longer than necessary. It