mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Make ssize_t clean
This commit is contained in:
parent
828fdefd92
commit
95f0e4c401
4 changed files with 6 additions and 6 deletions
|
|
@ -126,7 +126,7 @@ PyObject* row_subscript(Row* self, PyObject* idx)
|
|||
}
|
||||
}
|
||||
|
||||
int row_length(Row* self, PyObject* args, PyObject* kwargs)
|
||||
Py_ssize_t row_length(Row* self, PyObject* args, PyObject* kwargs)
|
||||
{
|
||||
return PyTuple_GET_SIZE(self->data);
|
||||
}
|
||||
|
|
@ -138,7 +138,7 @@ static int row_print(Row* self, FILE *fp, int flags)
|
|||
|
||||
|
||||
PyMappingMethods row_as_mapping = {
|
||||
/* mp_length */ (inquiry)row_length,
|
||||
/* mp_length */ (lenfunc)row_length,
|
||||
/* mp_subscript */ (binaryfunc)row_subscript,
|
||||
/* mp_ass_subscript */ (objobjargproc)0,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue