Fixed bug where bit shit was as an int and not a long

This commit is contained in:
Collin Smith
2020-09-10 01:35:24 -07:00
parent 7f5149baa7
commit 5935314a44

View File

@ -6,7 +6,7 @@ public class BitUtils {
public static boolean isUnsigned(long value, int bits) {
assert 0 < bits : "bits(" + bits + ") < " + 0;
assert bits <= Long.SIZE : "bits(" + bits + ") > " + Long.SIZE;
return (value & (1 << (bits - 1))) == 0;
return (value & (1L << (bits - 1))) == 0;
}
public static boolean isUnsigned(byte value) {