Author: Matti Picus <matti.pi...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit