From 088b5c09d0950663258bd98074960d0270cb0cfc Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Fri, 31 Jul 2009 09:52:04 +0000 Subject: [PATCH] fixed a small problem of operator precedence in "if (w1 ^ w1a != 0) continue;" by adding parentheses. git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPrimers/trunk@233 60f365c0-8329-0410-b2a4-ec073aeeaa1d --- src/libecoprimer/pairs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libecoprimer/pairs.c b/src/libecoprimer/pairs.c index 88fc9f5..64d8905 100644 --- a/src/libecoprimer/pairs.c +++ b/src/libecoprimer/pairs.c @@ -320,15 +320,15 @@ static void buildPrimerPairsForOneSeq(uint32_t seqid, w1a = extractSite(seqdb[seqid]->SQ,bp1,options->primer_length,strand); //get word of second approximate repeat w2a = extractSite(seqdb[seqid]->SQ,bp2,options->primer_length,!strand); - + w1 = w1 & omask; //keep only strict_three_prime bases on the right (3') end w2 = w2 & omask; //keep only strict_three_prime bases on the right (3') end w1a = w1a & omask; //keep only strict_three_prime bases on the right (3') end w2a = w2a & omask; //keep only strict_three_prime bases on the right (3') end - + //now check that both words and primers of amplifia have same bases on 3' end - if (w1 ^ w1a != 0) continue; - else if (w2 ^ w2a != 0) continue; + if ((w1 ^ w1a) != 0) continue; + if ((w2 ^ w2a) != 0) continue; }