Commit 70045fb0 authored by Mikaël Salson's avatar Mikaël Salson

segment.cpp: No good reason to use & rather than &&

parent 0a17624b
...@@ -804,9 +804,9 @@ void FineSegmenter::findCDR3(){ ...@@ -804,9 +804,9 @@ void FineSegmenter::findCDR3(){
std::list<string>::const_iterator it; std::list<string>::const_iterator it;
for (it = codon_start.begin(); it != codon_start.end(); ++it) {//filter 1 : start codon must be in V for (it = codon_start.begin(); it != codon_start.end(); ++it) {//filter 1 : start codon must be in V
loc = 0; loc = 0;
while ( loc != string::npos & loc < (size_t)Vend){ while ( loc != string::npos && loc < (size_t)Vend){
loc = str.find(*it, loc+3); loc = str.find(*it, loc+3);
if (loc != string::npos & loc < (size_t)Vend) { if (loc != string::npos && loc < (size_t)Vend) {
p_start.push_front(loc); p_start.push_front(loc);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment