From 445a6232262959c8562d35010458d7e8a0f00df6 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 22 Apr 2010 20:01:57 +0000 Subject: Fix my previous commit (r80382) for wide build (unicodeobject.c) --- Objects/unicodeobject.c | 5 +++-- 1 file 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)); -- cgit v0.12