diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-11-26 14:39:54 -0600 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-11-26 14:39:54 -0600 |
commit | fdcbaf4d0df22fcb9103ad8f2369cc9c87de2605 (patch) | |
tree | 7f8f6b1da1f2940cd8c937b1be49600cd4277935 /Python/codecs.c | |
parent | 9c7b8dc23f4bec85dfad09d32262d5ace752b40a (diff) | |
download | cpython-fdcbaf4d0df22fcb9103ad8f2369cc9c87de2605.tar.gz |
correct assertion
Diffstat (limited to 'Python/codecs.c')
-rw-r--r-- | Python/codecs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/codecs.c b/Python/codecs.c index ff9d1dec46..a0a540304a 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -1019,7 +1019,7 @@ PyObject *PyCodec_NameReplaceErrors(PyObject *exc) *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); |