Permalink
Browse files

bugfix: wrong score for KSW_XBYTE

  • Loading branch information...
lh3 committed Mar 2, 2012
1 parent 37d59e3 commit bcd53f36006f4864b238fa1b31a46f8a177fd5d7
Showing with 1 addition and 1 deletion.
  1. +1 −1 ksw.c
View
2 ksw.c
@@ -198,7 +198,7 @@ kswr_t ksw_u8(kswq_t *q, int tlen, const uint8_t *target, int _gapo, int _gape,
}
S = H1; H1 = H0; H0 = S; // swap H0 and H1
}
- r.score = gmax + q->shift < 255? gmax + q->shift : 255;
+ r.score = gmax + q->shift < 255? gmax : 255;
r.te = te;
if (r.score != 255) { // get a->qe, the end of query match; find the 2nd best score
int max = -1, low, high, qlen = slen * 16;

0 comments on commit bcd53f3

Please sign in to comment.