[pypy-svn] r68619 - in pypy/trunk/pypy/jit/backend/x86: . test
fijal at codespeak.net
fijal at codespeak.net
Mon Oct 19 11:41:14 CEST 2009
Author: fijal
Date: Mon Oct 19 11:41:13 2009
New Revision: 68619
Modified:
pypy/trunk/pypy/jit/backend/x86/support.py
pypy/trunk/pypy/jit/backend/x86/test/test_support.py
Log:
oops
Modified: pypy/trunk/pypy/jit/backend/x86/support.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/x86/support.py (original)
+++ pypy/trunk/pypy/jit/backend/x86/support.py Mon Oct 19 11:41:13 2009
@@ -23,7 +23,7 @@
lltype.direct_arrayitems(chunk), ofs))
def _no_of(self, i):
- while i > len(self.chunks) * CHUNK_SIZE:
+ while i >= len(self.chunks) * CHUNK_SIZE:
self._grow()
return i / CHUNK_SIZE, i % CHUNK_SIZE
Modified: pypy/trunk/pypy/jit/backend/x86/test/test_support.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/x86/test/test_support.py (original)
+++ pypy/trunk/pypy/jit/backend/x86/test/test_support.py Mon Oct 19 11:41:13 2009
@@ -22,5 +22,6 @@
ar.setitem(3 * CHUNK_SIZE + 42, 38)
adr = ar.get_addr_for_num(3 * CHUNK_SIZE + 42)
assert rffi.cast(rffi.CArrayPtr(lltype.Signed), adr)[0] == 38
-
+ ar.setitem(8*CHUNK_SIZE, 13)
+ assert ar.getitem(8*CHUNK_SIZE) == 13
More information about the Pypy-commit
mailing list