[Python-checkins] cpython (2.7): Fix typo in backporting fix of issue #16411 to 2.7.
nadeem.vawda
python-checkins at python.org
Sun Nov 11 03:28:42 CET 2012
http://hg.python.org/cpython/rev/be40a10d553a
changeset: 80357:be40a10d553a
branch: 2.7
parent: 80353:c3828831861c
user: Nadeem Vawda <nadeem.vawda at gmail.com>
date: Sun Nov 11 03:28:21 2012 +0100
summary:
Fix typo in backporting fix of issue #16411 to 2.7.
files:
Modules/zlibmodule.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -830,8 +830,8 @@
ENTER_ZLIB
start_total_out = self->zst.total_out;
- self->zst.avail_in = PyBytes_GET_SIZE(self->unconsumed_tail);
- self->zst.next_in = (Byte *)PyBytes_AS_STRING(self->unconsumed_tail);
+ self->zst.avail_in = PyString_GET_SIZE(self->unconsumed_tail);
+ self->zst.next_in = (Byte *)PyString_AS_STRING(self->unconsumed_tail);
self->zst.avail_out = length;
self->zst.next_out = (Byte *)PyString_AS_STRING(retval);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list