summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-05-10 11:00:15 (GMT)
committerGitHub <noreply@github.com>2017-05-10 11:00:15 (GMT)
commit98b49a00d413972965044fd355be3b8482caa07c (patch)
tree2b541b7bef96c4481b9683fef38e2b5afa68bec6 /Python
parent81ed53784608d44a8d196ad52288b55c7bf665db (diff)
downloadcpython-98b49a00d413972965044fd355be3b8482caa07c.zip
cpython-98b49a00d413972965044fd355be3b8482caa07c.tar.gz
cpython-98b49a00d413972965044fd355be3b8482caa07c.tar.bz2
bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480) (#1529)
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 bce86ab..5dc0444 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -5071,7 +5071,7 @@ do_call_core(PyObject *func, PyObject *callargs, PyObject *kwdict)
/* Extract a slice index from a 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.
*/
int