[pypy-commit] pypy default: Oups.

arigo noreply at buildbot.pypy.org
Wed Nov 9 20:34:28 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r49048:d6c0d1f92e1b
Date: 2011-11-09 20:34 +0100
http://bitbucket.org/pypy/pypy/changeset/d6c0d1f92e1b/

Log:	Oups.

diff --git a/pypy/rpython/lltypesystem/module/ll_math.py b/pypy/rpython/lltypesystem/module/ll_math.py
--- a/pypy/rpython/lltypesystem/module/ll_math.py
+++ b/pypy/rpython/lltypesystem/module/ll_math.py
@@ -123,7 +123,7 @@
     # By not calling into the external function the JIT can inline this.
     # Floats are awesome.
     if use_library_isinf_isnan and not jit.we_are_jitted():
-        return _lib_isnan(y)
+        return bool(_lib_isnan(y))
     return y != y
 
 def ll_math_isinf(y):
@@ -135,7 +135,7 @@
     # Use a custom hack that is reasonably well-suited to the JIT.
     # Floats are awesome (bis).
     if use_library_isinf_isnan and not jit.we_are_jitted():
-        return _lib_finite(y)
+        return bool(_lib_finite(y))
     z = 0.0 * y
     return z == z       # i.e.: z is not a NaN
 


More information about the pypy-commit mailing list