]> granicus.if.org Git - python/commitdiff
bpo-28685: Fix compiler warning (GH-5423)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 29 Jan 2018 12:47:06 +0000 (13:47 +0100)
committerGitHub <noreply@github.com>
Mon, 29 Jan 2018 12:47:06 +0000 (13:47 +0100)
Objects/listobject.c

index 9e321371aae97fc397e3823065af47d0a5a1394a..f0fe962be941262d16dabe15ad0c4b4279e1ec96 100644 (file)
@@ -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);