summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2018-01-29 12:47:06 (GMT)
committerGitHub <noreply@github.com>2018-01-29 12:47:06 (GMT)
commit8017b804a06804793bcc0a7f734d8a846b0fe18a (patch)
treec88eb8e7fa3f83551de99fe396111628b9d061f9 /Objects/listobject.c
parent51500f37453bbcbc5f1dbc3c38d079c3c1efe5de (diff)
downloadcpython-8017b804a06804793bcc0a7f734d8a846b0fe18a.zip
cpython-8017b804a06804793bcc0a7f734d8a846b0fe18a.tar.gz
cpython-8017b804a06804793bcc0a7f734d8a846b0fe18a.tar.bz2
bpo-28685: Fix compiler warning (GH-5423)
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 9e32137..f0fe962 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);