Skip to content

Commit a09b06d

Browse files
fix byte overflow (#729)
Signed-off-by: shiyuhang <[email protected]> Co-authored-by: shiyuhang <[email protected]>
1 parent 287317f commit a09b06d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/tikv/common/codec/RowV2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private int binarySearch(int i, int j, long colID) {
147147
if (this.large) {
148148
v = this.colIDs32[h];
149149
} else {
150-
v = this.colIDs[h];
150+
v = this.colIDs[h] & 0xFF;
151151
}
152152
if (v < colID) {
153153
i = h + 1;

0 commit comments

Comments
 (0)