r88: fixed an out-of-boundary bug in ksw2

This commit is contained in:
Heng Li 2017-06-27 14:50:31 -04:00
parent 42283ef10c
commit 8977f07269
2 changed files with 5 additions and 1 deletions

View File

@ -102,6 +102,10 @@ void ksw_extz2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uin
if (en > r) en = r;
if (st < (r-wr+1)>>1) st = (r-wr+1)>>1; // take the ceil
if (en > (r+wl)>>1) en = (r+wl)>>1; // take the floor
if (st > en) {
ez->zdropped = 1;
break;
}
st0 = st, en0 = en;
st = st / 16 * 16, en = (en + 16) / 16 * 16 - 1;
// set boundary conditions

2
main.c
View File

@ -10,7 +10,7 @@
#include "minimap.h"
#include "mmpriv.h"
#define MM_VERSION "2.0-r87-pre"
#define MM_VERSION "2.0-r88-pre"
void liftrlimit()
{