summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-13 01:07:27 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-13 01:07:27 (GMT)
commit3109d62da6c3953d5d818df9e090a2baad9128cd (patch)
tree85b154420e1105bcf14c2443e203089957546c2d
parent24c274f5dc2f2f9ebe6d3c9ee087b80d40bd49b4 (diff)
downloadcpython-3109d62da6c3953d5d818df9e090a2baad9128cd.zip
cpython-3109d62da6c3953d5d818df9e090a2baad9128cd.tar.gz
cpython-3109d62da6c3953d5d818df9e090a2baad9128cd.tar.bz2
Add a cast to make code compile with a C++ compiler.
-rw-r--r--Objects/genobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c
index 367b4de..ccce315 100644
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -10,7 +10,7 @@
static int
gen_traverse(PyGenObject *gen, visitproc visit, void *arg)
{
- Py_VISIT(gen->gi_frame);
+ Py_VISIT((PyObject *)gen->gi_frame);
return 0;
}