[pypy-svn] pypy default: explicitly turn bytecode into a list of ints, the stdlib seems to produce longs sometimes

cfbolz commits-noreply at bitbucket.org
Fri Feb 25 17:25:40 CET 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: 
Changeset: r42288:c2f296937d52
Date: 2011-02-25 17:09 +0100
http://bitbucket.org/pypy/pypy/changeset/c2f296937d52/

Log:	explicitly turn bytecode into a list of ints, the stdlib seems to
	produce longs sometimes

diff --git a/pypy/rlib/rsre/test/test_zjit.py b/pypy/rlib/rsre/test/test_zjit.py
--- a/pypy/rlib/rsre/test/test_zjit.py
+++ b/pypy/rlib/rsre/test/test_zjit.py
@@ -30,7 +30,7 @@
 def list2array(lst):
     a = lltype.malloc(lltype.GcArray(lltype.Signed), len(lst))
     for i, x in enumerate(lst):
-        a[i] = x
+        a[i] = int(x)
     return a
 
 def array2list(a):


More information about the Pypy-commit mailing list