From dfc63acc11dd86da41523dd190816260889fe396 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Fri, 22 Feb 2013 11:06:36 -0500 Subject: [PATCH] bugfix: another ">" vs. "<" bug That hurts, as I am going to reverse all these again! --- bwamem_pair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bwamem_pair.c b/bwamem_pair.c index d926857..6b9c490 100644 --- a/bwamem_pair.c +++ b/bwamem_pair.c @@ -275,7 +275,7 @@ int mem_sam_pe(const mem_opt_t *opt, const bntseq_t *bns, const uint8_t *pac, co q_se[1] = is_tandem[1]? q_se[1] : q_pe; extra_flag |= 2; } else { - if (o > un) { // then move the pair + if (o < un) { // then move the pair int tmp[2]; tmp[0] = q_se[0]; tmp[1] = q_se[1]; q_se[0] = z[0] == 0? q_se[0] : tmp[1] < q_pe? tmp[1] : q_pe;