r181: limit the max number of chains

This commit is contained in:
Heng Li
2020-04-02 21:55:00 -04:00
parent 3838482851
commit 968b4caef9
9 changed files with 65 additions and 34 deletions

View File

@@ -816,12 +816,10 @@ void add_fake_cigar(Fake_Cigar* x, uint32_t gap_site, int32_t gap_shift)
void resize_fake_cigar(Fake_Cigar* x, uint64_t size)
{
if(size > x->size)
{
if (size > x->size) {
x->size = size;
x->buffer = (uint64_t*)realloc(x->buffer, sizeof(uint64_t) * x->size);
REALLOC(x->buffer, x->size);
}
x->length = 0;
}