# HG changeset patch # User Franz Glasner # Date 1641326035 -3600 # Node ID 3d5ef056134c8f7f086878ecc449418ff942ff2c # Parent b7434a34a1f4d408ded5d9399d2102bb99d2eb0e Comment diff -r b7434a34a1f4 -r 3d5ef056134c configmix/_speedups.c --- a/configmix/_speedups.c Mon Jan 03 20:20:32 2022 +0100 +++ b/configmix/_speedups.c Tue Jan 04 20:53:55 2022 +0100 @@ -166,7 +166,7 @@ } /* * Figure out how many bytes the result will require. Turn any - * illegally large UTF32 things (> Plane 17) into replacement chars. + * illegally large UTF32 things (> Plane 17) into errors (exceptions). */ if (ch < (Py_UCS4)0x80) { bytesToWrite = 1; @@ -780,8 +780,8 @@ * an interpolation token. */ first_part_is_empty = PyObject_Not(tmp); - Py_INCREF(tmp); /* because PyList_SetItem steals -- and o is borrowed */ - PyList_SetItem(res_parts, 0, tmp); /* steals -- cannot fail */ + Py_INCREF(tmp); /* because PyList_SetItem steals -- and tmp is borrowed */ + PyList_SetItem(res_parts, 0, tmp); /* steals -- cannot fail here */ tmp = NULL; for (i=1; i