summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-03-23 11:43:20 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-03-23 11:43:20 (GMT)
commitd526c7cc1c7d8d86f6f47312a79ca68e4deea215 (patch)
tree8c6ee4b242939591466c742a944f511c7f0785f9 /Objects/unicodeobject.c
parentf9d1cf17cd8e517b367c5a369a76ce78412e9ba3 (diff)
downloadcpython-d526c7cc1c7d8d86f6f47312a79ca68e4deea215.zip
cpython-d526c7cc1c7d8d86f6f47312a79ca68e4deea215.tar.gz
cpython-d526c7cc1c7d8d86f6f47312a79ca68e4deea215.tar.bz2
Merged revisions 76197 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76197 | benjamin.peterson | 2009-11-10 22:23:15 +0100 (mar., 10 nov. 2009) | 1 line death to compiler warning ........
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 2ccec90..c9ff059 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -2513,7 +2513,9 @@ PyUnicode_EncodeUTF8(const Py_UNICODE *s,
*p++ = (char)(0x80 | (ch & 0x3f));
continue;
}
+#ifndef Py_UNICODE_WIDE
encodeUCS4:
+#endif
/* Encode UCS4 Unicode ordinals */
*p++ = (char)(0xf0 | (ch >> 18));
*p++ = (char)(0x80 | ((ch >> 12) & 0x3f));