Windows MSVC: Fixed warning of incompatible types

Fixed incompatible type warning from XidObject * to PyObject * by
casting.
This commit is contained in:
Jason Erickson 2011-02-23 17:32:45 -07:00 committed by Daniele Varrazzo
parent 961e855bbd
commit 7c2fa77c4b

View File

@ -939,7 +939,7 @@ connection_repr(connectionObject *self)
static int static int
connection_traverse(connectionObject *self, visitproc visit, void *arg) connection_traverse(connectionObject *self, visitproc visit, void *arg)
{ {
Py_VISIT(self->tpc_xid); Py_VISIT((PyObject *)(self->tpc_xid));
Py_VISIT(self->async_cursor); Py_VISIT(self->async_cursor);
Py_VISIT(self->notice_list); Py_VISIT(self->notice_list);
Py_VISIT(self->notice_filter); Py_VISIT(self->notice_filter);