Commit f9d0ac00 by Celine Mercier

ALignment: fixed a bug where a similarity threshold of 100% would

generate memory bugs
parent a258d334
......@@ -458,6 +458,9 @@ int calculateSizeToAllocate(int maxLen, int minLen, int LCSmin)
calculateBandLengths(maxLen, minLen, &notUsed, &size, LCSmin); // max size = max left band length * 2
if (!size) // Happens if there is no threshold (threshold is 100% similarity) and generates bugs if left to 0
size = 1;
//fprintf(stderr, "\nsize for address before %8 = %d", size);
size*= 2;
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