use Py_UNICODE_WIDE instead of USE_UCS4_STORAGE and Py_UNICODE_SIZE

tests.
This commit is contained in:
Fredrik Lundh 2001-06-27 18:59:43 +00:00
parent 3f8c2e1616
commit 8f4558583f
5 changed files with 18 additions and 16 deletions

View file

@ -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);