crash under non-typical setting (by John Marshall)

This commit is contained in:
Heng Li 2011-11-12 16:53:53 -05:00
parent 8060693411
commit 56a18659b6
1 changed files with 2 additions and 1 deletions

View File

@ -346,7 +346,8 @@ int bwa_cal_pac_pos_pe(const bntseq_t *bns, const char *prefix, bwt_t *const _bw
&& (p[1]->type == BWA_TYPE_UNIQUE || p[1]->type == BWA_TYPE_REPEAT))
{ // only when both ends mapped
b128_t x;
int j, k, n_occ[2];
int j, k;
long long n_occ[2];
for (j = 0; j < 2; ++j) {
n_occ[j] = 0;
for (k = 0; k < d->aln[j].n; ++k)