]> granicus.if.org Git - python/commitdiff
Minor change: fix character in do_strip() for the ASCII case
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 14 Apr 2013 17:17:42 +0000 (19:17 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 14 Apr 2013 17:17:42 +0000 (19:17 +0200)
Objects/unicodeobject.c

index dfc3cf21c96f879f8306d2875c06bc2a6d9fb9a6..17a19db34b5e43578265287802006e1c1582b713 100644 (file)
@@ -11705,7 +11705,7 @@ do_strip(PyObject *self, int striptype)
         i = 0;
         if (striptype != RIGHTSTRIP) {
             while (i < len) {
-                Py_UCS4 ch = data[i];
+                Py_UCS1 ch = data[i];
                 if (!_Py_ascii_whitespace[ch])
                     break;
                 i++;
@@ -11716,7 +11716,7 @@ do_strip(PyObject *self, int striptype)
         if (striptype != LEFTSTRIP) {
             j--;
             while (j >= i) {
-                Py_UCS4 ch = data[j];
+                Py_UCS1 ch = data[j];
                 if (!_Py_ascii_whitespace[ch])
                     break;
                 j--;