forked from Telodendria/Telodendria
Apply part of #32 (Thanks LDA <lda@devhonk.tk)
This commit is contained in:
parent
14223614ad
commit
0a4c9f3751
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue