[Python-checkins] r80384 - python/branches/py3k/Objects/unicodeobject.c

victor.stinner python-checkins at python.org
Thu Apr 22 22:01:58 CEST 2010


Author: victor.stinner
Date: Thu Apr 22 22:01:57 2010
New Revision: 80384

Log:
Fix my previous commit (r80382) for wide build (unicodeobject.c)


Modified:
   python/branches/py3k/Objects/unicodeobject.c

Modified: python/branches/py3k/Objects/unicodeobject.c
==============================================================================
--- python/branches/py3k/Objects/unicodeobject.c	(original)
+++ python/branches/py3k/Objects/unicodeobject.c	Thu Apr 22 22:01:57 2010
@@ -2562,9 +2562,8 @@
                 *p++ = (char)(0x80 | ((ch >> 12) & 0x3f));
                 *p++ = (char)(0x80 | ((ch >> 6) & 0x3f));
                 *p++ = (char)(0x80 | (ch & 0x3f));
-
-#endif
             } else {
+#endif
                 Py_ssize_t newpos;
                 PyObject *rep;
                 Py_ssize_t repsize, k;
@@ -2624,7 +2623,9 @@
                     }
                 }
                 Py_DECREF(rep);
+#ifndef Py_UNICODE_WIDE
             }
+#endif
         } else if (ch < 0x10000) {
             *p++ = (char)(0xe0 | (ch >> 12));
             *p++ = (char)(0x80 | ((ch >> 6) & 0x3f));


More information about the Python-checkins mailing list