[pypy-commit] pypy numpypy-complex2: revert my changes, tests on rcomplex pass
mattip
noreply at buildbot.pypy.org
Wed Aug 29 00:16:29 CEST 2012
Author: mattip <matti.picus at gmail.com>
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,
More information about the pypy-commit
mailing list