Skip to content

Commit 3663b58

Browse files
committed
correct assertion
1 parent 12abc86 commit 3663b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/codecs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ PyObject *PyCodec_NameReplaceErrors(PyObject *exc)
10191019
*outp++ = Py_hexdigits[c&0xf];
10201020
}
10211021

1022-
assert(outp == start + ressize);
1022+
assert(outp == PyUnicode_1BYTE_DATA(res) + ressize);
10231023
assert(_PyUnicode_CheckConsistency(res, 1));
10241024
restuple = Py_BuildValue("(Nn)", res, end);
10251025
Py_DECREF(object);

0 commit comments

Comments
 (0)