removed an unnecessary condition

This commit is contained in:
Heng Li 2013-02-26 11:51:03 -05:00
parent 264d5e42e5
commit fd67064207
1 changed files with 1 additions and 2 deletions

3
bwt.c
View File

@ -324,8 +324,7 @@ int bwt_smem1(const bwt_t *bwt, int len, const uint8_t *q, int x, int min_intv,
kv_push(bwtintv_t, *mem, ik); kv_push(bwtintv_t, *mem, ik);
} }
} // otherwise the match is contained in another longer match } // otherwise the match is contained in another longer match
} } else if (curr->n == 0 || ok[c].x[2] != curr->a[curr->n-1].x[2]) {
if (c >= 0 && ok[c].x[2] >= min_intv && (curr->n == 0 || ok[c].x[2] != curr->a[curr->n-1].x[2])) {
ok[c].info = p->info; ok[c].info = p->info;
kv_push(bwtintv_t, *curr, ok[c]); kv_push(bwtintv_t, *curr, ok[c]);
} }