summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-06-27 18:59:43 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2001-06-27 18:59:43 (GMT)
commit8f4558583f3b7e2d98e13baec06c2f43c9e6a723 (patch)
treee0fbd260591171ba41e443fd38b90b61210be03a /Python
parent3f8c2e1616f1d67730ffef40f3077247dfe46e26 (diff)
downloadcpython-8f4558583f3b7e2d98e13baec06c2f43c9e6a723.zip
cpython-8f4558583f3b7e2d98e13baec06c2f43c9e6a723.tar.gz
cpython-8f4558583f3b7e2d98e13baec06c2f43c9e6a723.tar.bz2
use Py_UNICODE_WIDE instead of USE_UCS4_STORAGE and Py_UNICODE_SIZE
tests.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 8917f45..11d6f4c 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -325,7 +325,7 @@ builtin_unichr(PyObject *self, PyObject *args)
return PyUnicode_FromUnicode(s, 1);
}
else {
-#if Py_UNICODE_SIZE == 2
+#ifndef Py_UNICODE_WIDE
/* UCS-4 character. store as two surrogate characters */
x -= 0x10000L;
s[0] = 0xD800 + (Py_UNICODE) (x >> 10);