Commit cb1a0283 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #17979: Fixed the re module in build with --disable-unicode.

parent e6f2e6cc
......@@ -58,6 +58,8 @@ Core and Builtins
Library
-------
- Issue #17979: Fixed the re module in build with --disable-unicode.
- Issue #17606: Fixed support of encoded byte strings in the XMLGenerator
.characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.
......
......@@ -23,8 +23,8 @@
# define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX + 1u)
# endif
#else
# define SRE_CODE unsigned long
# if SIZEOF_SIZE_T > SIZEOF_LONG
# define SRE_CODE unsigned int
# if SIZEOF_SIZE_T > SIZEOF_INT
# define SRE_MAXREPEAT (~(SRE_CODE)0)
# else
# define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX + 1u)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment