diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-04-22 20:01:57 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-04-22 20:01:57 (GMT) |
commit | 445a6232262959c8562d35010458d7e8a0f00df6 (patch) | |
tree | 9304e2e76846112592057562d5064f070bd16e1d /Objects | |
parent | 31be90b0c7648f3ca802f6624d496511d71e48ef (diff) | |
download | cpython-445a6232262959c8562d35010458d7e8a0f00df6.zip cpython-445a6232262959c8562d35010458d7e8a0f00df6.tar.gz cpython-445a6232262959c8562d35010458d7e8a0f00df6.tar.bz2 |
Fix my previous commit (r80382) for wide build (unicodeobject.c)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e5c0751..ae401a6 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -2562,9 +2562,8 @@ PyUnicode_EncodeUTF8(const Py_UNICODE *s, *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 @@ PyUnicode_EncodeUTF8(const Py_UNICODE *s, } } Py_DECREF(rep); +#ifndef Py_UNICODE_WIDE } +#endif } else if (ch < 0x10000) { *p++ = (char)(0xe0 | (ch >> 12)); *p++ = (char)(0x80 | ((ch >> 6) & 0x3f)); |