mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Issue #1160: Fix compiling large regular expressions on UCS2 builds.
Patch by Serhiy Storchaka.
This commit is contained in:
parent
4a1fdcf07d
commit
39bdad813a
4 changed files with 17 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue