]> git.donarmstrong.com Git - samtools.git/commitdiff
fixed another problem
authorHeng Li <lh3@live.co.uk>
Wed, 1 Sep 2010 22:52:30 +0000 (22:52 +0000)
committerHeng Li <lh3@live.co.uk>
Wed, 1 Sep 2010 22:52:30 +0000 (22:52 +0000)
bcftools/vcf.c

index 23aad3c0c97b02c12d9643d18c87e68ef4d87dc2..d441d7f0b278bf0d6d72eb05d0e641a0926b04ef 100644 (file)
@@ -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;