diff options
author | Xiang Zhang <angwerzx@126.com> | 2017-05-10 11:11:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-10 11:11:09 (GMT) |
commit | 639e295650a51894412c9d976958792010d3bcf8 (patch) | |
tree | 3d4ef3afa5c5b3f2c2f6ccf93db87aa04867b4e6 /Python/ceval.c | |
parent | 9721729952d5844505fda01efd1c4149acb59220 (diff) | |
download | cpython-639e295650a51894412c9d976958792010d3bcf8.zip cpython-639e295650a51894412c9d976958792010d3bcf8.tar.gz cpython-639e295650a51894412c9d976958792010d3bcf8.tar.bz2 |
bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1530) (#1480)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 3070a90..47c5eff 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -5095,7 +5095,7 @@ ext_call_fail: /* 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 |