Author: Armin Rigo <ar...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit