Skip to content

Commit 908452d

Browse files
merge
1 parent 205b83b commit 908452d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/main/java/org/elasticsearch/common/lucene/store/ByteArrayIndexInput.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@ public long length() {
6868

6969
@Override
7070
public byte readByte(long pos) throws IOException {
71-
return bytes[offset + position(pos)];
71+
return bytes[position(pos)];
7272
}
7373

7474
@Override
7575
public short readShort(long pos) throws IOException {
76-
return (short) BitUtil.VH_LE_SHORT.get(bytes, offset + position(pos));
76+
return (short) BitUtil.VH_LE_SHORT.get(bytes, position(pos));
7777
}
7878

7979
@Override
8080
public int readInt(long pos) throws IOException {
81-
return (int) BitUtil.VH_LE_INT.get(bytes, offset + position(pos));
81+
return (int) BitUtil.VH_LE_INT.get(bytes, position(pos));
8282
}
8383

8484
@Override
8585
public long readLong(long pos) throws IOException {
86-
return (long) BitUtil.VH_LE_LONG.get(bytes, offset + position(pos));
86+
return (long) BitUtil.VH_LE_LONG.get(bytes, position(pos));
8787
}
8888

8989
@Override

0 commit comments

Comments
 (0)