We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac86eed commit 0fea784Copy full SHA for 0fea784
common/unsafe/src/main/java/org/apache/spark/unsafe/types/ByteArray.java
@@ -44,7 +44,7 @@ public static long getPrefix(byte[] bytes) {
44
final int minLen = Math.min(bytes.length, 8);
45
long p = 0;
46
for (int i = 0; i < minLen; ++i) {
47
- p |= (128L + Platform.getByte(bytes, Platform.BYTE_ARRAY_OFFSET + i))
+ p |= ((long)Platform.getByte(bytes, Platform.BYTE_ARRAY_OFFSET + i) & 0xff)
48
<< (56 - 8 * i);
49
}
50
return p;
0 commit comments