[pypy-svn] r22574 - pypy/dist/pypy/translator/js/test
ericvrp at codespeak.net
ericvrp at codespeak.net
Tue Jan 24 11:07:31 CET 2006
Author: ericvrp
Date: Tue Jan 24 11:07:29 2006
New Revision: 22574
Modified:
pypy/dist/pypy/translator/js/test/test_genllvm.py
Log:
genjs fix for pow inaccuracy on Internet Explorer
Modified: pypy/dist/pypy/translator/js/test/test_genllvm.py
==============================================================================
--- pypy/dist/pypy/translator/js/test/test_genllvm.py (original)
+++ pypy/dist/pypy/translator/js/test/test_genllvm.py Tue Jan 24 11:07:29 2006
@@ -70,7 +70,7 @@
x += x ** 1
x += x ** 2
x += i + 1 * i // i - 1
- return x
+ return int(x+0.0001)
f = compile_function(ops, [int])
assert f(1) == ops(1)
assert f(2) == ops(2)
@@ -89,7 +89,7 @@
x += x ** 1
x += x ** 2
x += i + 1 * i // i - 1
- return x
+ return int(x+0.0001)
f = compile_function(ops, [r_uint])
assert f(1) == ops(1)
assert f(2) == ops(2)
More information about the Pypy-commit
mailing list