Author: mattip <[email protected]>
Branch: numpypy-complex2
Changeset: r56921:40773bbfd03c
Date: 2012-08-29 00:48 +0300
http://bitbucket.org/pypy/pypy/changeset/40773bbfd03c/

Log:    revert my changes, tests on rcomplex pass

diff --git a/pypy/rlib/rcomplex.py b/pypy/rlib/rcomplex.py
--- a/pypy/rlib/rcomplex.py
+++ b/pypy/rlib/rcomplex.py
@@ -526,9 +526,9 @@
     if not isfinite(r) or not isfinite(i):
         # C99 rules: if either the real or the imaginary part is an
         # infinity, return infinity, even if the other part is a NaN.
-        if not isfinite(r):
+        if isinf(r):
             return INF
-        if not isfinite(i):
+        if isinf(i):
             return INF
 
         # either the real or imaginary part is a NaN,
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to