https://github.com/python/cpython/commit/8017b804a06804793bcc0a7f734d8a846b0fe18a commit: 8017b804a06804793bcc0a7f734d8a846b0fe18a branch: master author: Victor Stinner <victor.stinner at gmail.com> committer: GitHub <noreply at github.com> date: 2018年01月29日T13:47:06+01:00 summary: bpo-28685: Fix compiler warning (GH-5423) files: M Objects/listobject.c diff --git a/Objects/listobject.c b/Objects/listobject.c index 9e321371aae9..f0fe962be941 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -2028,7 +2028,8 @@ unsafe_object_compare(PyObject *v, PyObject *w, MergeState *ms) static int unsafe_latin_compare(PyObject *v, PyObject *w, MergeState *ms) { - int len, res; + Py_ssize_t len; + int res; /* Modified from Objects/unicodeobject.c:unicode_compare, assuming: */ assert(v->ob_type == w->ob_type);