Skip to content

Commit 167eedd

Browse files
committed
Remove some more unnecessary casts because everything takes PyObject *
1 parent 0e949d8 commit 167eedd

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6080,7 +6080,7 @@ static PyTypeObject ConnectionType = {
60806080
.tp_dealloc = Connection_dealloc,
60816081
.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
60826082
.tp_doc = Connection_class_DOC,
6083-
.tp_traverse = (traverseproc)Connection_tp_traverse,
6083+
.tp_traverse = Connection_tp_traverse,
60846084
.tp_weaklistoffset = offsetof(Connection, weakreflist),
60856085
.tp_methods = Connection_methods,
60866086
.tp_members = Connection_members,

src/cursor.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,10 +1927,10 @@ static PyTypeObject APSWCursorType = {
19271927
.tp_dealloc = APSWCursor_dealloc,
19281928
.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
19291929
.tp_doc = Cursor_class_DOC,
1930-
.tp_traverse = (traverseproc)APSWCursor_tp_traverse,
1930+
.tp_traverse = APSWCursor_tp_traverse,
19311931
.tp_weaklistoffset = offsetof(APSWCursor, weakreflist),
1932-
.tp_iter = (getiterfunc)APSWCursor_iter,
1933-
.tp_iternext = (iternextfunc)APSWCursor_next,
1932+
.tp_iter = APSWCursor_iter,
1933+
.tp_iternext = APSWCursor_next,
19341934
.tp_methods = APSWCursor_methods,
19351935
.tp_getset = APSWCursor_getset,
19361936
.tp_init = APSWCursor_init,

src/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2332,7 +2332,7 @@ static PyTypeObject APSWChangesetType = {
23322332

23332333
static PyTypeObject APSWChangesetIteratorType = {
23342334
PyVarObject_HEAD_INIT(NULL, 0).tp_name = "apsw.ChangesetIterator", .tp_basicsize = sizeof(APSWChangesetIterator),
2335-
.tp_iternext = (iternextfunc)APSWChangesetIterator_next, .tp_iter = APSWChangesetIterator_iter,
2335+
.tp_iternext = APSWChangesetIterator_next, .tp_iter = APSWChangesetIterator_iter,
23362336
.tp_dealloc = APSWChangesetIterator_dealloc,
23372337
};
23382338

0 commit comments

Comments
 (0)