We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e287a commit c8e237bCopy full SHA for c8e237b
1 file changed
roaringbitmap/src/main/java/org/roaringbitmap/art/LeafNode.java
@@ -145,11 +145,11 @@ public long getContainerIdx() {
145
}
146
147
public byte[] getKeyBytes() {
148
- return LongUtils.highPart(getKey() >> 16);
+ return LongUtils.highPart(getKey() << 16);
149
150
151
public long getKey() {
152
- return ((long) keyHigh) << 32 | ((long)keyLow) << 16;
+ return (((long) keyHigh) & 0xFFFFFFFFL) << 16 | (((long)keyLow) & 0xFFFFL);
153
154
155
/**
0 commit comments