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

generate memory bugs
This commit is contained in:
Celine Mercier
2017-10-13 18:55:30 +02:00
parent a258d334b1
commit f9d0ac00aa

View File

@ -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 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); //fprintf(stderr, "\nsize for address before %8 = %d", size);
size*= 2; size*= 2;