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

mattip pypy.commits at gmail.com
Tue Mar 21 16:23:01 EDT 2017


Author: Matti Picus <matti.picus at gmail.com>
Branch: py3.5
Changeset: r90780:eecdab8e95b5
Date: 2017-03-21 22:22 +0200
http://bitbucket.org/pypy/pypy/changeset/eecdab8e95b5/

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

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