]> git.donarmstrong.com Git - samtools.git/blobdiff - bam2bcf.c
fixed compilation error
[samtools.git] / bam2bcf.c
index e141438b286358b784d0d6ef9569d20bc1d31891..d69c771da80ef14ed925e549548f988a766ae680 100644 (file)
--- a/bam2bcf.c
+++ b/bam2bcf.c
@@ -3,7 +3,7 @@
 #include "bam.h"
 #include "kstring.h"
 #include "bam2bcf.h"
-#include "bcf.h"
+#include "bcftools/bcf.h"
 
 extern void ks_introsort_uint32_t(size_t n, uint32_t a[]);
 
@@ -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) {