Skip to content

Commit

Permalink
fixed a off-by-1 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Heng Li committed Oct 27, 2011
1 parent 7babb54 commit 02946df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bwtsw2_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ int bsw2_resolve_duphits(const bntseq_t *bns, const bwt_t *bwt, bwtsw2_t *b, int
b->hits[j].k = bns_depos(bns, bwt_sa(bwt, k), &is_rev);
b->hits[j].l = 0;
b->hits[j].is_rev = is_rev;
if (is_rev) b->hits[j].k -= p->len;
if (is_rev) b->hits[j].k -= p->len - 1;
++j;
}
} else if (p->G > 0) {
Expand All @@ -299,7 +299,7 @@ int bsw2_resolve_duphits(const bntseq_t *bns, const bwt_t *bwt, bwtsw2_t *b, int
b->hits[j].l = 0;
b->hits[j].flag |= 1;
b->hits[j].is_rev = is_rev;
if (is_rev) b->hits[j].k -= p->len;
if (is_rev) b->hits[j].k -= p->len - 1;
++j;
}
}
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "utils.h"

#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "0.6.0-r68-dev"
#define PACKAGE_VERSION "0.6.0-r69-dev"
#endif

static int usage()
Expand Down

0 comments on commit 02946df

Please sign in to comment.