Apply part of #32 (Thanks LDA <lda@devhonk.tk)

This commit is contained in:
Jordan Bancino 2022-11-05 01:29:20 +00:00
parent 14223614ad
commit 0a4c9f3751

View file

@ -66,7 +66,9 @@ MemoryInsert(MemoryInfo * a)
}
}
if ((allocationsLen + 1) >= (0.75 * allocationsSize))
/* If the next insertion would cause the table to be at least 3/4
* full, re-allocate and re-hash. */
if ((allocationsLen + 1) >= ((allocationsSize * 3) >> 2))
{
size_t i;
size_t tmpAllocationsSize = allocationsSize;