Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 18324:3ba7a358ce02 legacy-trunk
use Py_UNICODE_WIDE instead of USE_UCS4_STORAGE and Py_UNICODE_SIZE
tests.
| author | Fredrik Lundh <fredrik@pythonware.com> |
|---|---|
| date | Wed, 27 Jun 2001 18:59:43 +0000 |
| parents | 932903c7d054 |
| children | 74b3c4e3f486 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Wed Jun 27 17:14:04 2001 +0000 +++ b/Python/bltinmodule.c Wed Jun 27 18:59:43 2001 +0000 @@ -325,7 +325,7 @@ 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);
