From fd6706420788f9a80996d1f22385291f9adcffed Mon Sep 17 00:00:00 2001 From: Heng Li Date: Tue, 26 Feb 2013 11:51:03 -0500 Subject: [PATCH] removed an unnecessary condition --- bwt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bwt.c b/bwt.c index d57e2d5..ab0a6fc 100644 --- a/bwt.c +++ b/bwt.c @@ -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); } } // otherwise the match is contained in another longer match - } - if (c >= 0 && ok[c].x[2] >= min_intv && (curr->n == 0 || ok[c].x[2] != curr->a[curr->n-1].x[2])) { + } else if (curr->n == 0 || ok[c].x[2] != curr->a[curr->n-1].x[2]) { ok[c].info = p->info; kv_push(bwtintv_t, *curr, ok[c]); }