Commits

Alex Gaynor committed 87d6e93

Use the simpler isfinite in another place

  • Participants
  • Parent commits b441e4f

Comments (0)

Files changed (1)

pypy/module/math/interp_math.py

         del partials[added:]
         if v != 0.0:
             if not rfloat.isfinite(v):
-                if (not rfloat.isinf(original) and
-                    not rfloat.isnan(original)):
+                if rfloat.isfinite(original):
                     raise OperationError(space.w_OverflowError,
                                          space.wrap("intermediate overflow"))
                 if rfloat.isinf(original):