mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Add PY_SSIZE_T_MIN, as suggested by Ralf W. Grosse-Kunstleve.
This commit is contained in:
parent
726dcf34a6
commit
c48c8db110
2 changed files with 3 additions and 1 deletions
|
@ -281,7 +281,7 @@ _long_as_ssize_t(PyObject *vv) {
|
|||
if (sign > 0)
|
||||
return PY_SSIZE_T_MAX;
|
||||
else
|
||||
return -PY_SSIZE_T_MAX-1;
|
||||
return PY_SSIZE_T_MIN;
|
||||
}
|
||||
|
||||
/* Get a Py_ssize_t from a long int object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue