[pypy-commit] pypy dynamic-specialized-tuple: progress
alex_gaynor
noreply at buildbot.pypy.org
Mon Apr 23 18:03:25 CEST 2012
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: dynamic-specialized-tuple
Changeset: r54682:c50fe5be8265
Date: 2012-04-23 12:00 -0400
http://bitbucket.org/pypy/pypy/changeset/c50fe5be8265/
Log: progress
diff --git a/pypy/rlib/rerased_raw.py b/pypy/rlib/rerased_raw.py
--- a/pypy/rlib/rerased_raw.py
+++ b/pypy/rlib/rerased_raw.py
@@ -6,6 +6,7 @@
from pypy.annotation import model as annmodel
from pypy.annotation.bookkeeper import getbookkeeper
+from pypy.rlib import longlong2float
from pypy.rpython.annlowlevel import (hlstr, llstr, llhelper,
cast_instance_to_base_ptr)
from pypy.rpython.rclass import getinstancerepr
@@ -307,7 +308,7 @@
elif elem == INT:
yield rffi.cast(lltype.Signed, storage.data[i])
elif elem == FLOAT:
- yield rffi.cast(lltype.Float, storage.data[i])
+ yield longlong2float.longlong2float(storage.data[i])
elif elem == BOOL:
yield rffi.cast(lltype.Bool, storage.data[i])
else:
More information about the pypy-commit
mailing list