[pypy-commit] pypy float-bytes: Fix for 32-bits.
alex_gaynor
noreply at buildbot.pypy.org
Mon Mar 19 21:38:08 CET 2012
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: float-bytes
Changeset: r53810:285832970fbc
Date: 2012-03-19 20:36 +0000
http://bitbucket.org/pypy/pypy/changeset/285832970fbc/
Log: Fix for 32-bits.
diff --git a/pypy/jit/backend/test/runner_test.py b/pypy/jit/backend/test/runner_test.py
--- a/pypy/jit/backend/test/runner_test.py
+++ b/pypy/jit/backend/test/runner_test.py
@@ -1601,8 +1601,9 @@
assert res == -19
def test_convert_float_bytes(self):
+ t = 'int' if longlong.is_64_bit else 'float'
res = self.execute_operation(rop.CONVERT_FLOAT_BYTES_TO_LONGLONG,
- [boxfloat(2.5)], 'int').value
+ [boxfloat(2.5)], t).value
assert res == longlong2float.float2longlong(2.5)
def test_ooops_non_gc(self):
More information about the pypy-commit
mailing list