[Python-checkins] cpython: _pickle: Fix load_counted_tuple(), use Py_ssize_t for size

victor.stinner python-checkins at python.org
Mon Mar 14 13:10:42 EDT 2016


https://hg.python.org/cpython/rev/4e9afe3c05dd
changeset:   100533:4e9afe3c05dd
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Mar 14 18:09:39 2016 +0100
summary:
  _pickle: Fix load_counted_tuple(), use Py_ssize_t for size

Fix a warning on Windows 64-bit.

files:
  Modules/_pickle.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_pickle.c b/Modules/_pickle.c
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -5056,7 +5056,7 @@
 }
 
 static int
-load_counted_tuple(UnpicklerObject *self, int len)
+load_counted_tuple(UnpicklerObject *self, Py_ssize_t len)
 {
     PyObject *tuple;
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list