Commit 61c5c497 authored by Mikael Salson's avatar Mikael Salson

Algo: Cast so that we compare the same (un)signed types.

parent 4c5a51d8
......@@ -175,7 +175,7 @@ KmerSegmenter::KmerSegmenter(Sequence seq, IKmerStore<KmerAffect> *index,
int s = (size_t)index->getS() ;
int length = sequence.length() ;
if (length < (size_t) s)
if (length < s)
{
because = UNSEG_TOO_SHORT;
kaa = NULL;
......@@ -568,7 +568,7 @@ FineSegmenter::FineSegmenter(Sequence seq, Fasta &rep_V, Fasta &rep_J,
// Trim J
Jstart += b_r;
del_J += b_r;
if (Jstart>=sequence.length())
if (Jstart>=(int) sequence.length())
Jstart=sequence.length()-1;
}
......
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