Make ssize_t clean

This commit is contained in:
Neal Norwitz 2006-04-01 09:08:06 +00:00
parent 828fdefd92
commit 95f0e4c401
4 changed files with 6 additions and 6 deletions

View file

@ -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,
};