[pypy-commit] pypy default: Make integer constant fit in 32 bits to make vmprof tests pass on 32-bit again.

mjacob pypy.commits at gmail.com
Mon Feb 15 08:12:00 EST 2016


Author: Manuel Jacob <me at manueljacob.de>
Branch: 
Changeset: r82262:02eab80025cb
Date: 2016-02-15 14:10 +0100
http://bitbucket.org/pypy/pypy/changeset/02eab80025cb/

Log:	Make integer constant fit in 32 bits to make vmprof tests pass on
	32-bit again.

diff --git a/rpython/rlib/rvmprof/test/test_rvmprof.py b/rpython/rlib/rvmprof/test/test_rvmprof.py
--- a/rpython/rlib/rvmprof/test/test_rvmprof.py
+++ b/rpython/rlib/rvmprof/test/test_rvmprof.py
@@ -101,7 +101,7 @@
         s = 0
         for i in range(num):
             s += (i << 1)
-            if s % 32423423423 == 0:
+            if s % 2423423423 == 0:
                 print s
         return s
 


More information about the pypy-commit mailing list