[pypy-commit] pypy struct-double: make the test run
fijal
noreply at buildbot.pypy.org
Sat Mar 3 18:57:38 CET 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: struct-double
Changeset: r53145:c1a5fe999a88
Date: 2012-03-03 09:57 -0800
http://bitbucket.org/pypy/pypy/changeset/c1a5fe999a88/
Log: make the test run
diff --git a/pypy/rpython/lltypesystem/rbuilder.py b/pypy/rpython/lltypesystem/rbuilder.py
--- a/pypy/rpython/lltypesystem/rbuilder.py
+++ b/pypy/rpython/lltypesystem/rbuilder.py
@@ -125,7 +125,7 @@
if used + size > ll_builder.allocated:
ll_builder.grow(ll_builder, size)
- rffi.cast(FLOAT_ARRAY, lltype.direct_ptradd(ll_builder.buf.chars, used))[0] = f
+ rffi.cast(FLOAT_ARRAY, rffi.ptradd(rffi.cast(rffi.VOIDP, ll_builder.buf.chars), used))[0] = f
ll_builder.used += size
@staticmethod
More information about the pypy-commit
mailing list