Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from julsal/master
Browse files Browse the repository at this point in the history
removing bug
  • Loading branch information
erikbern authored Jul 10, 2017
2 parents 2ddbfaa + 8b2d7f1 commit 06f7917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/spotify/annoy/ANNIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private void load(final String filename) throws IOException {
throw new IOException("Index is a 0-byte file?");
}

int buffIndex = (int) (fileSize - 1) / BLOCK_SIZE;
int buffIndex = (int) ((fileSize - 1) / BLOCK_SIZE);
int rest = (int) (fileSize % BLOCK_SIZE);
int blockSize = (rest > 0 ? rest : BLOCK_SIZE);
long position = fileSize - blockSize;
Expand Down

0 comments on commit 06f7917

Please sign in to comment.