Kaydet (Commit) 47f0ffa7 authored tarafından Neal Norwitz's avatar Neal Norwitz

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

üst 7443b805
......@@ -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 *
......
......@@ -922,7 +922,7 @@ file_readinto(PyFileObject *f, PyObject *args)
ndone += nnow;
ntodo -= nnow;
}
return PyInt_FromLong((long)ndone);
return PyInt_FromSsize_t(ndone);
}
/**************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment