aboutsummaryrefslogtreecommitdiffstats
path: root/src/algorithms/bits/Signum.java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-01-20 02:36:11 +0100
committerMattias Andrée <maandree@operamail.com>2014-01-20 02:36:11 +0100
commit29f54e47b035b78f87d1f0db59db4e689e1bd140 (patch)
tree0349d8d01951375301889b347f3b1a2bbc1cb153 /src/algorithms/bits/Signum.java
parentm + add abs (diff)
downloadalgorithms-and-data-structures-29f54e47b035b78f87d1f0db59db4e689e1bd140.tar.gz
algorithms-and-data-structures-29f54e47b035b78f87d1f0db59db4e689e1bd140.tar.bz2
algorithms-and-data-structures-29f54e47b035b78f87d1f0db59db4e689e1bd140.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/algorithms/bits/Signum.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algorithms/bits/Signum.java b/src/algorithms/bits/Signum.java
index 3744be7..07ddddf 100644
--- a/src/algorithms/bits/Signum.java
+++ b/src/algorithms/bits/Signum.java
@@ -92,7 +92,7 @@ public class Signum
*/
public static boolean haveOpposite(£{T} a, £{T} b)
{
- return (x ^ y) < 0;
+ return (a ^ b) < 0;
}
£>done
}