Commit 0dee5399 authored by Cyprien Borée's avatar Cyprien Borée Committed by Mikaël Salson

Return entire BioReader if kmer_threshold is negative

Since kmer_threshold parameter became a signed int, there's the possibility
that this parameter is a negative number. If it's the case the entire original
BioReader is returned.
parent d474b3ab
......@@ -58,7 +58,7 @@ BioReader filterBioReaderWithACAutomaton(
KmerAffect tmpKmer;
unsigned int asciiNum;
char asciiChar;
if(!idxAho){
if(!idxAho || kmer_threshold < 0){
return origin;
}
indexes = idxAho->first;
......
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