File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -96,18 +96,18 @@ PyObject* pysqlite_row_item(pysqlite_Row* self, Py_ssize_t idx)
9696 return Py_XNewRef (item );
9797}
9898
99- static int pysqlite_row_contains (PyObject * self , PyObject * arg )
99+ static int
100+ pysqlite_row_contains (pysqlite_Row * self , PyObject * arg )
100101{
101102 Py_ssize_t nitems , i ;
102103 int cmp = 0 ;
103- pysqlite_Row * row = (pysqlite_Row * )self ;
104104
105- nitems = PyTuple_Size (row -> description );
105+ nitems = PyTuple_Size (self -> description );
106106
107107 for (i = 0 ; cmp == 0 && i < nitems ; i ++ ) {
108108 cmp = PyObject_RichCompareBool (
109109 arg ,
110- PyTuple_GET_ITEM (PyTuple_GET_ITEM (row -> description , i ), 0 ),
110+ PyTuple_GET_ITEM (PyTuple_GET_ITEM (self -> description , i ), 0 ),
111111 Py_EQ
112112 );
113113 }
You can’t perform that action at this time.
0 commit comments