[pypy-commit] pypy struct-double: closer to passing?
alex_gaynor
noreply at buildbot.pypy.org
Sat Mar 3 19:02:00 CET 2012
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: struct-double
Changeset: r53146:672e875c6730
Date: 2012-03-03 13:01 -0500
http://bitbucket.org/pypy/pypy/changeset/672e875c6730/
Log: closer to passing?
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
@@ -51,8 +51,6 @@
('buf', lltype.Ptr(UNICODE)),
adtmeths={'grow':staticAdtMethod(unicodebuilder_grow)})
-FLOAT_ARRAY = lltype.Ptr(lltype.Array(lltype.Float))
-
MAX = 16*1024*1024
class BaseStringBuilderRepr(AbstractStringBuilderRepr):
@@ -125,7 +123,7 @@
if used + size > ll_builder.allocated:
ll_builder.grow(ll_builder, size)
- rffi.cast(FLOAT_ARRAY, rffi.ptradd(rffi.cast(rffi.VOIDP, ll_builder.buf.chars), used))[0] = f
+ rffi.cast(rffi.CArrayPtr(T), 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