forked from enlightenment/efl
Also check for PRIME_MAX when increasing hash size.
SVN revision: 30210
This commit is contained in:
parent
63a4d1b72a
commit
869c74666b
|
@ -675,7 +675,7 @@ _ecore_hash_increase(Ecore_Hash *hash)
|
|||
CHECK_PARAM_POINTER_RETURN("hash", hash, FALSE);
|
||||
|
||||
/* Max size reached so return FALSE */
|
||||
if (hash->size == PRIME_TABLE_MAX)
|
||||
if ((ecore_prime_table[hash->size] == PRIME_MAX) || (hash->size == PRIME_TABLE_MAX))
|
||||
return FALSE;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue