changeset 556:3d5ef056134c

Comment
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 04 Jan 2022 20:53:55 +0100
parents b7434a34a1f4
children ba8f1295e1e2
files configmix/_speedups.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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<parts_len; i++) {