mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
Handle really big steps in extended slices.
Fixes a test failure on 64 bit platforms (I hope).
This commit is contained in:
parent
9050a517c8
commit
cbd6fb9006
2 changed files with 3 additions and 6 deletions
|
@ -3507,7 +3507,7 @@ _PyEval_SliceIndex(PyObject *v, int *pi)
|
|||
if (x > INT_MAX)
|
||||
x = INT_MAX;
|
||||
else if (x < -INT_MAX)
|
||||
x = 0;
|
||||
x = -INT_MAX;
|
||||
*pi = x;
|
||||
}
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue