[go: nahoru, domu]

Skip to content

Commit

Permalink
fixed issue with positions returning from the sampled suffix array
Browse files Browse the repository at this point in the history
  • Loading branch information
Sawwave committed Jan 29, 2024
1 parent 95a9a4b commit 6062d17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AwFmSearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ uint64_t *awFmFindDatabaseHitPositions(const struct AwFmIndex *_RESTRICT_ const
}
}

// position is divided by compression ratio to get the index in the suffix array
positionArray[i] = backtracePosition / index->config.suffixArrayCompressionRatio;
positionArray[i] = backtracePosition;
offsetArray[i] = databaseSequenceOffset;
}

Expand Down

0 comments on commit 6062d17

Please sign in to comment.