cpython: correct assertion
https://hg.python.org/cpython/rev/edc8a0bb95aa changeset: 93607:edc8a0bb95aa parent: 93605:6528f943c1bd user: Benjamin Peterson <benjamin@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
participants (1)
-
benjamin.peterson