Skip to content

Commit

Permalink
Merge pull request #11 from LiveRamp/update-bithelper
Browse files Browse the repository at this point in the history
Update Integer.SIZE to Long.SIZE in BitHelper
  • Loading branch information
brucesw committed May 24, 2019
2 parents 61121a3 + f4cb06e commit f7bb68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/liveramp/hyperminhash/BitHelper.java
Expand Up @@ -10,7 +10,7 @@ class BitHelper {
*/
static long getLeftmostBits(long value, int numBits) {
if (numBits >= Long.SIZE) {
throw new IllegalArgumentException(String.format("numBits must be < %d", Integer.SIZE));
throw new IllegalArgumentException(String.format("numBits must be < %d", Long.SIZE));
}

return (value >>> (Long.SIZE - numBits));
Expand Down

0 comments on commit f7bb68b

Please sign in to comment.