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))