]> git.donarmstrong.com Git - samtools.git/blobdiff - misc/maq2sam.c
r579: after merging Peter's depad changes
[samtools.git] / 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);