summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-05-10 19:20:28 +0800
committerGitHub <noreply@github.com>2017-05-10 19:20:28 +0800
commit05469fa1c05acf55bdca05db21822ecdd7f6487a (patch)
tree264e99b1b8d4f03b10f3667c597e8d9c9d16d465 /Python
parent88321413a719fa61eab2b9d33bc6a68826f562d2 (diff)
downloadcpython-git-05469fa1c05acf55bdca05db21822ecdd7f6487a.tar.gz
bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1531) (#1480)
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index cea503e56f..4e4adc2d63 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4679,7 +4679,7 @@ ext_call_fail:
/* Extract a slice index from a PyInt or PyLong or an object with the
nb_index slot defined, and store in *pi.
Silently reduce values larger than PY_SSIZE_T_MAX to PY_SSIZE_T_MAX,
- and silently boost values less than -PY_SSIZE_T_MAX-1 to -PY_SSIZE_T_MAX-1.
+ and silently boost values less than PY_SSIZE_T_MIN to PY_SSIZE_T_MIN.
Return 0 on error, 1 on success.
*/
/* Note: If v is NULL, return success without storing into *pi. This