[Python-checkins] cpython: correct assertion
benjamin.peterson
python-checkins at python.org
Wed Nov 26 21:42:12 CET 2014
https://hg.python.org/cpython/rev/edc8a0bb95aa
changeset: 93607:edc8a0bb95aa
parent: 93605:6528f943c1bd
user: Benjamin Peterson <benjamin at python.org>
date: Wed Nov 26 14:39:54 2014 -0600
summary:
correct assertion
files:
Python/codecs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/codecs.c b/Python/codecs.c
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -1019,7 +1019,7 @@
*outp++ = Py_hexdigits[c&0xf];
}
- assert(outp == start + ressize);
+ assert(outp == PyUnicode_1BYTE_DATA(res) + ressize);
assert(_PyUnicode_CheckConsistency(res, 1));
restuple = Py_BuildValue("(Nn)", res, end);
Py_DECREF(object);
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list