diff options
Diffstat (limited to 'src/algorithms/bits/Powers.java')
-rw-r--r-- | src/algorithms/bits/Powers.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algorithms/bits/Powers.java b/src/algorithms/bits/Powers.java index df6f926..84c9399 100644 --- a/src/algorithms/bits/Powers.java +++ b/src/algorithms/bits/Powers.java @@ -32,7 +32,7 @@ public class Powers */ public static boolean isPowerOf2(£{T} value) { - return (value & (value - 1)) == 0; + return (value & (value - 1)) == 0; /* The left hand side clears the least significant bit set */ /* Or alternatively: (value & -value) == value */ } £>done |