]> granicus.if.org Git - python/commit
closes bpo-35623: Fix integer overflow when sorting large lists (GH-11380)
authorsth <sth.dev@tejp.de>
Wed, 2 Jan 2019 02:01:54 +0000 (03:01 +0100)
committerBenjamin Peterson <benjamin@python.org>
Wed, 2 Jan 2019 02:01:54 +0000 (18:01 -0800)
commitf8b534477a2a51d85ea1663530f685f805f2b247
tree4451d5f9b3737e1bedb15f445ba10e3f2e8de007
parent7e3fb40b923cb09ecc67816d3191197868593737
closes bpo-35623: Fix integer overflow when sorting large lists (GH-11380)

There is already a `Py_ssize_t i` defined at function scope that is used
for similar loops. By removing the local `int i` declaration that `i` is
used, which has the appropriate type.
Misc/NEWS.d/next/Core and Builtins/2018-12-31-02-37-20.bpo-35623.24AQhY.rst [new file with mode: 0644]
Objects/listobject.c