r440: a condition not work due to a typo

This commit is contained in:
Heng Li 2014-02-20 13:06:40 -05:00
parent ce026a07fc
commit e879817373
2 changed files with 2 additions and 2 deletions

2
bwa.c
View File

@ -143,7 +143,7 @@ uint32_t *bwa_gen_cigar(const int8_t mat[25], int q, int r, int w_, int64_t l_pa
}
x += len; y += len;
} else if (op == 2) { // deletion
if (k > 0 && k < *n_cigar) { // don't do the following if D is the first or the last CIGAR
if (k > 0 && k < *n_cigar - 1) { // don't do the following if D is the first or the last CIGAR
kputw(u, &str); kputc('^', &str);
for (i = 0; i < len; ++i)
kputc(int2base[rseq[y+i]], &str);

2
main.c
View File

@ -4,7 +4,7 @@
#include "utils.h"
#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "0.7.6a+dev-r439"
#define PACKAGE_VERSION "0.7.6a+dev-r440"
#endif
int bwa_fa2pac(int argc, char *argv[]);