]> git.donarmstrong.com Git - samtools.git/commitdiff
fixed another minor bug
authorHeng Li <lh3@live.co.uk>
Tue, 3 Aug 2010 19:58:32 +0000 (19:58 +0000)
committerHeng Li <lh3@live.co.uk>
Tue, 3 Aug 2010 19:58:32 +0000 (19:58 +0000)
bam2bcf.c

index e141438b286358b784d0d6ef9569d20bc1d31891..2f96d324d7c471f903cea8a7b93fb6e93be5b522 100644 (file)
--- a/bam2bcf.c
+++ b/bam2bcf.c
@@ -169,7 +169,7 @@ int bcf_call_combine(int n, const bcf_callret1_t *calls, int ref_base /*4-bit*/,
                for (j = i; j > 0 && sum[j] < sum[j-1]; --j)
                        tmp = sum[j], sum[j] = sum[j-1], sum[j-1] = tmp;
        // set the reference allele and alternative allele(s)
-       for (i = 0; i < 4; ++i) call->a[i] = -1;
+       for (i = 0; i < 5; ++i) call->a[i] = -1;
        call->unseen = -1;
        call->a[0] = ref4;
        for (i = 3, j = 1; i >= 0; --i) {