File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -96,18 +96,17 @@ PyObject* pysqlite_row_item(pysqlite_Row* self, Py_ssize_t idx)
96
96
return Py_XNewRef (item );
97
97
}
98
98
99
- static int pysqlite_row_contains (PyObject * self , PyObject * arg )
99
+ static int pysqlite_row_contains (pysqlite_Row * self , PyObject * arg )
100
100
{
101
101
Py_ssize_t nitems , i ;
102
102
int cmp = 0 ;
103
- pysqlite_Row * row = (pysqlite_Row * )self ;
104
103
105
- nitems = PyTuple_Size (row -> description );
104
+ nitems = PyTuple_Size (self -> description );
106
105
107
106
for (i = 0 ; cmp == 0 && i < nitems ; i ++ ) {
108
107
cmp = PyObject_RichCompareBool (
109
108
arg ,
110
- PyTuple_GET_ITEM (PyTuple_GET_ITEM (row -> description , i ), 0 ),
109
+ PyTuple_GET_ITEM (PyTuple_GET_ITEM (self -> description , i ), 0 ),
111
110
Py_EQ
112
111
);
113
112
}
You can’t perform that action at this time.
0 commit comments