[pypy-commit] pypy py3.5: fix isfinite calls that incorrectly became isinf in a7d7fd1b9931

gutworth pypy.commits at gmail.com
Sat Jan 20 13:45:30 EST 2018


Author: Benjamin Peterson <benjamin at python.org>
Branch: py3.5
Changeset: r93690:dbc3ed3f19fb
Date: 2018-01-20 10:44 -0800
http://bitbucket.org/pypy/pypy/changeset/dbc3ed3f19fb/

Log:	fix isfinite calls that incorrectly became isinf in a7d7fd1b9931

diff --git a/pypy/module/math/interp_math.py b/pypy/module/math/interp_math.py
--- a/pypy/module/math/interp_math.py
+++ b/pypy/module/math/interp_math.py
@@ -355,8 +355,8 @@
             v = hi
         del partials[added:]
         if v != 0.0:
-            if not math.isinf(v):
-                if math.isinf(original):
+            if not rfloat.isfinite(v):
+                if rfloat.isfinite(original):
                     raise oefmt(space.w_OverflowError, "intermediate overflow")
                 if math.isinf(original):
                     inf_sum += original


More information about the pypy-commit mailing list