From 72da33c8c4a87cf2b2f1926ceab646cd12acf554 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Tue, 19 Aug 2008 12:34:55 +0100 Subject: [PATCH] Missing typecast to PyObject in Py_VISIT argument. --- pybindgen/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybindgen/container.py b/pybindgen/container.py index 46c3898..9a2e969 100644 --- a/pybindgen/container.py +++ b/pybindgen/container.py @@ -340,7 +340,7 @@ static void static int %s(%s *self, visitproc visit, void *arg) { - Py_VISIT(self->container); + Py_VISIT((PyObject *) self->container); return 0; } ''' % (tp_traverse_function_name, self.iter_pystruct))