]> git.donarmstrong.com Git - samtools.git/commitdiff
fixed a SERIOUS bug in setting 0x20 flag
authorHeng Li <lh3@live.co.uk>
Tue, 4 Aug 2009 21:16:51 +0000 (21:16 +0000)
committerHeng Li <lh3@live.co.uk>
Tue, 4 Aug 2009 21:16:51 +0000 (21:16 +0000)
misc/maq2sam.c

index 53a3ef3353d0383d336e4f6fa7ebb338f81f860b..2bfbe2a3b328e276b52f1a443dbc6500d81122e8 100644 (file)
@@ -5,7 +5,7 @@
 #include <stdlib.h>
 #include <assert.h>
 
-#define PACKAGE_VERSION "0.1.2 (20090521)"
+#define PACKAGE_VERSION "r439"
 
 //#define MAQ_LONGREADS
 
@@ -111,7 +111,7 @@ void maq2tam_core(gzFile fp, const char *rg)
                                else if (m1->flag&(PAIRFLAG_RF|PAIRFLAG_RR)) c = 1;
                                else c = m1->pos&1;
                        }
-                       flag |= c;
+                       if (c) flag |= 0x20;
                }
                if (m1->flag) {
                        int l = strlen(m1->name);