mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev
This commit is contained in:
parent
87557cd72a
commit
076d1e0c0b
2 changed files with 2 additions and 2 deletions
|
|
@ -922,7 +922,7 @@ file_readinto(PyFileObject *f, PyObject *args)
|
|||
ndone += nnow;
|
||||
ntodo -= nnow;
|
||||
}
|
||||
return PyInt_FromLong((long)ndone);
|
||||
return PyInt_FromSsize_t(ndone);
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue