Skip to content

Commit

Permalink
fix reading ints when offset != 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jbellis committed Jul 16, 2024
1 parent 355c93a commit bd75108
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void readFully(long[] vector) throws IOException {
@Override
public void read(int[] ints, int offset, int count) throws IOException {
for (int i = 0; i < count; i++) {
ints[i] = raf.readInt();
ints[offset + i] = raf.readInt();
}
}

Expand Down

0 comments on commit bd75108

Please sign in to comment.