From: Heng Li Date: Tue, 4 Aug 2009 21:16:51 +0000 (+0000) Subject: fixed a SERIOUS bug in setting 0x20 flag X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3a42c375d4b42b77f1a25b6288f7d367af9f3abb;p=samtools.git fixed a SERIOUS bug in setting 0x20 flag --- diff --git a/misc/maq2sam.c b/misc/maq2sam.c index 53a3ef3..2bfbe2a 100644 --- a/misc/maq2sam.c +++ b/misc/maq2sam.c @@ -5,7 +5,7 @@ #include #include -#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);