From eacb9ea358921b5a9afe0bf617f9efbaf0184d11 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Wed, 1 Sep 2010 22:52:30 +0000 Subject: [PATCH] fixed another problem --- bcftools/vcf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bcftools/vcf.c b/bcftools/vcf.c index 23aad3c..d441d7f 100644 --- a/bcftools/vcf.c +++ b/bcftools/vcf.c @@ -152,7 +152,7 @@ int vcf_read(bcf_t *bp, bcf_hdr_t *h, bcf1_t *b) } else if (k == 1) { // pos b->pos = atoi(p) - 1; } else if (k == 5) { // qual - b->qual = (p[0] >= '0' && p[0] <= '9')? atoi(p) : 0; + b->qual = (p[0] >= '0' && p[0] <= '9')? atof(p) : 0; } else if (k <= 8) { // variable length strings kputs(p, &str); kputc('\0', &str); b->l_str = str.l; b->m_str = str.m; b->str = str.s; -- 2.39.2