Skip to content

Commit

Permalink
fixed a long existing bug
Browse files Browse the repository at this point in the history
This bug may cause segfault (though never to me) and lead to missing
suboptimal hits. But the top hits should not be affected.
  • Loading branch information
Heng Li committed Oct 12, 2011
1 parent beedc98 commit 2255c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bwtgap.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static inline void gap_push(gap_stack_t *stack, int a, int i, bwtint_t k, bwtint
p = q->stack + q->n_entries;
p->info = (u_int32_t)score<<21 | a<<20 | i; p->k = k; p->l = l;
p->n_mm = n_mm; p->n_gapo = n_gapo; p->n_gape = n_gape; p->state = state;
if (is_diff) p->last_diff_pos = i;
p->last_diff_pos = is_diff? i : -1;
++(q->n_entries);
++(stack->n_entries);
if (stack->best > score) stack->best = score;
Expand Down

0 comments on commit 2255c4c

Please sign in to comment.