[pypy-commit] pypy default: blindly change this from -1 to an arbitrary large number on 32 bit systems

rlamy pypy.commits at gmail.com
Tue May 2 12:10:51 EDT 2017


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: 
Changeset: r91167:5f9e5afded55
Date: 2017-03-21 22:22 +0200
http://bitbucket.org/pypy/pypy/changeset/5f9e5afded55/

Log:	blindly change this from -1 to an arbitrary large number on 32 bit
	systems (grafted from eecdab8e95b5c78071de41b3a5b0007c5d994f4b)

diff --git a/rpython/rlib/rsre/rsre_char.py b/rpython/rlib/rsre/rsre_char.py
--- a/rpython/rlib/rsre/rsre_char.py
+++ b/rpython/rlib/rsre/rsre_char.py
@@ -28,7 +28,7 @@
     MAXGROUPS = int(2**31 - 1)
 else:
     MAXREPEAT = int(2**31 - 1)
-    MAXGROUPS = int((2**31 / sys.maxint / 2) - 1)
+    MAXGROUPS = int(2**30 - 1)
 
 # In _sre.c this is bytesize of the code word type of the C implementation.
 # There it's 2 for normal Python builds and more for wide unicode builds (large


More information about the pypy-commit mailing list