]> granicus.if.org Git - python/commitdiff
these variables ought to be Py_ssize_t
authorBenjamin Peterson <benjamin@python.org>
Mon, 29 Sep 2014 23:12:26 +0000 (19:12 -0400)
committerBenjamin Peterson <benjamin@python.org>
Mon, 29 Sep 2014 23:12:26 +0000 (19:12 -0400)
Objects/bytesobject.c

index cad22c8c031f2535eaccd4a28ecc254d4cd686f1..32c5d71ecd1c9d952c0af3b7b62db6901c03b22e 100644 (file)
@@ -584,7 +584,7 @@ PyBytes_Repr(PyObject *obj, int smartquotes)
 {
     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;