]> git.donarmstrong.com Git - samtools.git/commitdiff
r580: bugfix - bam_aux_get() error given 'f' type
authorHeng Li <lh3@me.com>
Fri, 3 Aug 2012 18:46:23 +0000 (14:46 -0400)
committerHeng Li <lh3@me.com>
Fri, 3 Aug 2012 18:46:23 +0000 (14:46 -0400)
bam.h

diff --git a/bam.h b/bam.h
index 159f7159cb2006e75a48de5810485c46b609e832..a3305e3cf4b758edaaeaf201ea4fbc87ab8f919b 100644 (file)
--- a/bam.h
+++ b/bam.h
@@ -40,7 +40,7 @@
   @copyright Genome Research Ltd.
  */
 
   @copyright Genome Research Ltd.
  */
 
-#define BAM_VERSION "0.1.18-r579"
+#define BAM_VERSION "0.1.18-r580"
 
 #include <stdint.h>
 #include <stdlib.h>
 
 #include <stdint.h>
 #include <stdlib.h>
@@ -773,7 +773,7 @@ static inline int bam_aux_type2size(int x)
 {
        if (x == 'C' || x == 'c' || x == 'A') return 1;
        else if (x == 'S' || x == 's') return 2;
 {
        if (x == 'C' || x == 'c' || x == 'A') return 1;
        else if (x == 'S' || x == 's') return 2;
-       else if (x == 'I' || x == 'i' || x == 'f') return 4;
+       else if (x == 'I' || x == 'i' || x == 'f' || x == 'F') return 4;
        else return 0;
 }
 
        else return 0;
 }