diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-11-20 21:30:42 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-11-20 21:30:42 (GMT) |
commit | 39bdad813a2f07bd8c373e2c88b76467ef12832c (patch) | |
tree | f7908fef135347773f5eed6ca29a49918e466ff8 /Modules/sre.h | |
parent | 4a1fdcf07d4ee37ec003cd29be6b17e91d5db012 (diff) | |
download | cpython-39bdad813a2f07bd8c373e2c88b76467ef12832c.zip cpython-39bdad813a2f07bd8c373e2c88b76467ef12832c.tar.gz cpython-39bdad813a2f07bd8c373e2c88b76467ef12832c.tar.bz2 |
Issue #1160: Fix compiling large regular expressions on UCS2 builds.
Patch by Serhiy Storchaka.
Diffstat (limited to 'Modules/sre.h')
-rw-r--r-- | Modules/sre.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/sre.h b/Modules/sre.h index aec9b54..d389b46 100644 --- a/Modules/sre.h +++ b/Modules/sre.h @@ -14,12 +14,8 @@ #include "sre_constants.h" /* size of a code word (must be unsigned short or larger, and - large enough to hold a Py_UNICODE character) */ -#ifdef Py_UNICODE_WIDE + large enough to hold a UCS4 character) */ #define SRE_CODE Py_UCS4 -#else -#define SRE_CODE unsigned short -#endif typedef struct { PyObject_VAR_HEAD |