File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1405,16 +1405,16 @@ static struct PyMemberDef cursor_members[] =
14051405};
14061406
14071407static PyObject *
1408- cursor_get_row_factory (PyObject * op , void * closure )
1408+ cursor_get_row_factory (PyObject * op , void * Py_UNUSED ( closure ) )
14091409{
1410- pysqlite_Cursor * self = ( pysqlite_Cursor * ) op ;
1410+ pysqlite_Cursor * self = _pysqlite_Cursor_CAST ( op ) ;
14111411 return Py_NewRef (self -> row_factory );
14121412}
14131413
14141414static int
1415- cursor_set_row_factory (PyObject * op , PyObject * value , void * closure )
1415+ cursor_set_row_factory (PyObject * op , PyObject * value , void * Py_UNUSED ( closure ) )
14161416{
1417- pysqlite_Cursor * self = ( pysqlite_Cursor * ) op ;
1417+ pysqlite_Cursor * self = _pysqlite_Cursor_CAST ( op ) ;
14181418 if (value == NULL ) {
14191419 PyErr_SetString (PyExc_AttributeError ,
14201420 "cannot delete row_factory attribute" );
You can’t perform that action at this time.
0 commit comments