summaryrefslogtreecommitdiffstats
path: root/Modules/sre.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-03 16:18:38 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-03 16:18:38 (GMT)
commit1f35ae0a3c7dc2d7709f60e62cb4d0aa7aeae490 (patch)
treeda53139331ad9a0e3b0c059815c195f835da4b2d /Modules/sre.h
parent1dfb9180a736c9033730ce05db696ee32c5a3d1c (diff)
downloadcpython-1f35ae0a3c7dc2d7709f60e62cb4d0aa7aeae490.zip
cpython-1f35ae0a3c7dc2d7709f60e62cb4d0aa7aeae490.tar.gz
cpython-1f35ae0a3c7dc2d7709f60e62cb4d0aa7aeae490.tar.bz2
Issue #17998: Fix an internal error in regular expression engine.
Diffstat (limited to 'Modules/sre.h')
-rw-r--r--Modules/sre.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/sre.h b/Modules/sre.h
index 1a6cd56..0a8f0cf 100644
--- a/Modules/sre.h
+++ b/Modules/sre.h
@@ -19,7 +19,7 @@
#if SIZEOF_SIZE_T > 4
# define SRE_MAXREPEAT (~(SRE_CODE)0)
#else
-# define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX + 1u)
+# define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX)
#endif
typedef struct {