Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev

This commit is contained in:
Neal Norwitz 2006-08-21 18:20:10 +00:00
parent 87557cd72a
commit 076d1e0c0b
2 changed files with 2 additions and 2 deletions

View file

@ -470,7 +470,7 @@ static PyObject *
mmap_tell_method(mmap_object *self, PyObject *unused)
{
CHECK_VALID(NULL);
return PyInt_FromLong((long) self->pos);
return PyInt_FromSsize_t(self->pos);
}
static PyObject *