Skip to content

Commit

Permalink
improves locality
Browse files Browse the repository at this point in the history
  • Loading branch information
kloetzl committed Apr 10, 2015
1 parent b69b074 commit 5403ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/esa.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ lcp_inter_t get_match_from( const esa_s *C, const char *query, size_t qlen, said
return ij;
}

saidx_t l, i, j, p;
saidx_t l, i, j;

lcp_inter_t res = ij;

Expand Down Expand Up @@ -586,7 +586,7 @@ lcp_inter_t get_match_from( const esa_s *C, const char *query, size_t qlen, said
k++;

// Extend the match
for( p = SA[i]; k < l; k++){
for( int p = SA[i]; k < l; k++){
if( S[p+k] != query[k] ){
res.l = k;
return res;
Expand Down

0 comments on commit 5403ae9

Please sign in to comment.