From: Anthony Baxter Date: Thu, 13 Apr 2006 01:07:27 +0000 (+0000) Subject: Add a cast to make code compile with a C++ compiler. X-Git-Tag: v2.5a2~293 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3109d62da6c3953d5d818df9e090a2baad9128cd;p=thirdparty%2FPython%2Fcpython.git Add a cast to make code compile with a C++ compiler. --- diff --git a/Objects/genobject.c b/Objects/genobject.c index 367b4de0272a..ccce315ee910 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; }