Skip to content

Commit ddd4dbd

Browse files
committed
fix bit to long bug
Signed-off-by: shiyuhang <1136742008@qq.com>
1 parent c75730e commit ddd4dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/tikv/common/columnar/TiChunkColumnVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private long getLongFromBinary(int rowId) {
178178
if (bytes.length == 0) return 0;
179179
long result = 0;
180180
for (byte b : bytes) {
181-
result = (result << 8) | b;
181+
result = (result << 8) | (b & 0xff);
182182
}
183183
return result;
184184
}

0 commit comments

Comments
 (0)