diff --git a/pkl-core/src/main/java/org/pkl/core/util/MathUtils.java b/pkl-core/src/main/java/org/pkl/core/util/MathUtils.java index 9f2e7f09..05b5cac4 100644 --- a/pkl-core/src/main/java/org/pkl/core/util/MathUtils.java +++ b/pkl-core/src/main/java/org/pkl/core/util/MathUtils.java @@ -63,7 +63,7 @@ public final strictfp class MathUtils { * Long.bitCount(Long.MIN_VALUE) == 1}, but {@link Long#MIN_VALUE} is not a power of two. */ public static boolean isPowerOfTwo(long x) { - return x > 0 & (x & (x - 1)) == 0; + return x > 0 && (x & (x - 1)) == 0; } /**