]> git.donarmstrong.com Git - samtools.git/commitdiff
added "const" to bcf_p1_cal()
authorHeng Li <lh3@live.co.uk>
Thu, 24 Feb 2011 15:05:54 +0000 (15:05 +0000)
committerHeng Li <lh3@live.co.uk>
Thu, 24 Feb 2011 15:05:54 +0000 (15:05 +0000)
bcftools/prob1.c
bcftools/prob1.h

index c820f71ae5f018ab6cd1515bf95ed5f8879b9641..9d418c55acdb5d0b276bda0d718a23708bf24f6a 100644 (file)
@@ -365,7 +365,7 @@ long double bcf_p1_cal_g3(bcf_p1aux_t *p1a, double g[3])
        return pd;
 }
 
-int bcf_p1_cal(bcf1_t *b, bcf_p1aux_t *ma, bcf_p1rst_t *rst)
+int bcf_p1_cal(const bcf1_t *b, bcf_p1aux_t *ma, bcf_p1rst_t *rst)
 {
        int i, k;
        long double sum = 0.;
index 157ba4610fd8ff3a02e2467e3a676162ea65cd7b..b4f6a304ae49ff31f9ef9ae88db268cd3f01640e 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
        void bcf_p1_init_prior(bcf_p1aux_t *ma, int type, double theta);
        void bcf_p1_init_subprior(bcf_p1aux_t *ma, int type, double theta);
        void bcf_p1_destroy(bcf_p1aux_t *ma);
-       int bcf_p1_cal(bcf1_t *b, bcf_p1aux_t *ma, bcf_p1rst_t *rst);
+       int bcf_p1_cal(const bcf1_t *b, bcf_p1aux_t *ma, bcf_p1rst_t *rst);
        int bcf_p1_call_gt(const bcf_p1aux_t *ma, double f0, int k);
        void bcf_p1_dump_afs(bcf_p1aux_t *ma);
        int bcf_p1_read_prior(bcf_p1aux_t *ma, const char *fn);