Skip to content

Commit

Permalink
Merge pull request #388 from scijava/fix-casting-bug
Browse files Browse the repository at this point in the history
Fix ReadBufferDataHandle.globalToLocalOffset()
  • Loading branch information
ctrueden authored May 28, 2020
2 parents dcb568d + 9233908 commit 33bb140
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private byte[] readPage(final int pageID, final int slotID) throws IOException {
* Calculates the offset in the current page for the given global offset
*/
private int globalToLocalOffset(final long off) {
return (int) off % pageSize;
return (int) (off % pageSize);
}

@Override
Expand Down

0 comments on commit 33bb140

Please sign in to comment.