[Python-checkins] cpython: Issue #21442: Fix MSVC compiler warning introduced by issue21377.

zach.ware python-checkins at python.org
Tue May 6 18:43:12 CEST 2014


http://hg.python.org/cpython/rev/6234f4caba57
changeset:   90574:6234f4caba57
parent:      90572:ec609d498566
user:        Zachary Ware <zachary.ware at gmail.com>
date:        Tue May 06 11:42:37 2014 -0500
summary:
  Issue #21442: Fix MSVC compiler warning introduced by issue21377.

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


diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -2809,7 +2809,7 @@
 
     if (Py_REFCNT(*pv) == 1 && PyBytes_CheckExact(*pv)) {
         /* Only one reference, so we can resize in place */
-        size_t oldsize;
+        Py_ssize_t oldsize;
         Py_buffer wb;
         
         wb.len = -1;

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


More information about the Python-checkins mailing list