Commit 0a17624b authored by Mikaël Salson's avatar Mikaël Salson

segment.cpp: Avoid comparisons of (un)signed integers

parent d1798cd5
......@@ -804,9 +804,9 @@ void FineSegmenter::findCDR3(){
std::list<string>::const_iterator it;
for (it = codon_start.begin(); it != codon_start.end(); ++it) {//filter 1 : start codon must be in V
loc = 0;
while ( loc != string::npos & loc < Vend){
while ( loc != string::npos & loc < (size_t)Vend){
loc = str.find(*it, loc+3);
if (loc != string::npos & loc < Vend) {
if (loc != string::npos & loc < (size_t)Vend) {
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