Fixed wrong operator.

Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/fcccb0ec
Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/fcccb0ec
Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/fcccb0ec

Branch: refs/heads/master
Commit: fcccb0ecfa5a855de8909c6644f19262845e8587
Parents: 03384e6
Author: Gilles Sadowski <gil...@harfang.homelinux.org>
Authored: Wed Apr 25 12:02:05 2018 +0200
Committer: Gilles Sadowski <gil...@harfang.homelinux.org>
Committed: Wed Apr 25 12:02:05 2018 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/commons/numbers/complex/Complex.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/fcccb0ec/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
----------------------------------------------------------------------
diff --git 
a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
 
b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
index 2cd2e0f..9a6d4cc 100644
--- 
a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
+++ 
b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
@@ -329,7 +329,7 @@ public final class Complex implements Serializable  {
                 x = Double.POSITIVE_INFINITY * (a*c + b*d);
                 y = Double.POSITIVE_INFINITY * (b*c - a*d);
             } else if (Double.isInfinite(logbw) &&
-                    !Double.isInfinite(a) & !Double.isInfinite(b)) {
+                    !Double.isInfinite(a) && !Double.isInfinite(b)) {
                 c = Math.copySign(Double.isInfinite(c) ? 1.0 : 0.0, c);
                 d = Math.copySign(Double.isInfinite(d) ? 1.0 : 0.0, d);
                 x = 0.0 * (a*c + b*d);

Reply via email to