]> granicus.if.org Git - python/commitdiff
Add a cast to make code compile with a C++ compiler.
authorAnthony Baxter <anthonybaxter@gmail.com>
Thu, 13 Apr 2006 01:07:27 +0000 (01:07 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Thu, 13 Apr 2006 01:07:27 +0000 (01:07 +0000)
Objects/genobject.c

index 367b4de0272ab033d4f0a96fd59c1bc34f1da5dc..ccce315ee910be63181a83570a10a6c80d31ee85 100644 (file)
@@ -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;
 }