[Python-checkins] cpython (3.3): these variables ought to be Py_ssize_t

benjamin.peterson python-checkins at python.org
Tue Sep 30 01:12:57 CEST 2014


https://hg.python.org/cpython/rev/226740b14f1c
changeset:   92640:226740b14f1c
branch:      3.3
parent:      92637:f5c662a7f7e6
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Sep 29 19:12:26 2014 -0400
summary:
  these variables ought to be Py_ssize_t

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
@@ -584,7 +584,7 @@
 {
     register PyBytesObject* op = (PyBytesObject*) obj;
     Py_ssize_t i, length = Py_SIZE(op);
-    size_t newsize, squotes, dquotes;
+    Py_ssize_t newsize, squotes, dquotes;
     PyObject *v;
     unsigned char quote, *s, *p;
 

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


More information about the Python-checkins mailing list