]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
_pickle: Fix load_counted_tuple(), use Py_ssize_t for size
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 14 Mar 2016 17:09:39 +0000 (18:09 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 14 Mar 2016 17:09:39 +0000 (18:09 +0100)
Fix a warning on Windows 64-bit.

Modules/_pickle.c

index 2a070e22e7b73ec5abcf194c704adb526c1581ba..f500038de8177f909efe97a84f8189fb2586048f 100644 (file)
@@ -4982,7 +4982,7 @@ load_counted_binunicode(UnpicklerObject *self, int nbytes)
 }
 
 static int
-load_counted_tuple(UnpicklerObject *self, int len)
+load_counted_tuple(UnpicklerObject *self, Py_ssize_t len)
 {
     PyObject *tuple;