Skip to content

Commit 34928ed

Browse files
author
Erlend E. Aasland
committed
Get rid of unneeded cast in cursor_dealloc
1 parent f5d9873 commit 34928ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_sqlite/cursor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ cursor_clear(pysqlite_Cursor *self)
116116
}
117117

118118
static void
119-
cursor_dealloc(pysqlite_Cursor *self)
119+
cursor_dealloc(PyObject *self)
120120
{
121121
PyTypeObject *tp = Py_TYPE(self);
122122
PyObject_GC_UnTrack(self);
123-
tp->tp_clear((PyObject *)self);
123+
tp->tp_clear(self);
124124
tp->tp_free(self);
125125
Py_DECREF(tp);
126126
}

0 commit comments

Comments
 (0)