Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 60877:b05d025bc0df 3.1
Merged revisions 80384 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r80384 | victor.stinner | 2010-04-22 22:01:57 +0200 (jeu., 22 avril 2010) | 2 lines
Fix my previous commit (r80382) for wide build (unicodeobject.c)
........
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Thu, 22 Apr 2010 20:07:28 +0000 |
| parents | 149badf73bca |
| children | 8d5dd2276680 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Thu Apr 22 19:41:01 2010 +0000 +++ b/Objects/unicodeobject.c Thu Apr 22 20:07:28 2010 +0000 @@ -2481,9 +2481,8 @@ *p++ = (char)(0x80 | ((ch >> 12) & 0x3f)); *p++ = (char)(0x80 | ((ch >> 6) & 0x3f)); *p++ = (char)(0x80 | (ch & 0x3f)); - + } else { #endif - } else { Py_ssize_t newpos; PyObject *rep; Py_ssize_t repsize, k; @@ -2543,7 +2542,9 @@ } } Py_DECREF(rep); - } +#ifndef Py_UNICODE_WIDE + } +#endif } else if (ch < 0x10000) { *p++ = (char)(0xe0 | (ch >> 12)); *p++ = (char)(0x80 | ((ch >> 6) & 0x3f));
