===================================================================
@@ -125,7 +125,7 @@ pointer_set_insert (struct pointer_set_t
/* For simplicity, expand the set even if P is already there. This can
be
superfluous but can happen at most once. */
- if (pset->n_elements > pset->n_slots / 4)
+ if (pset->n_elements * 4 > pset->n_slots * 3)
{
size_t old_n_slots = pset->n_slots;
const void **old_slots = pset->slots;
===================================================================
@@ -109,7 +109,7 @@ pointer_map<T>::insert (const void *p, b
/* For simplicity, expand the map even if P is already there. This can
be
superfluous but can happen at most once. */
/* ??? Fugly that we have to inline that here. */
- if (n_elements > n_slots / 4)
+ if (n_elements * 4 > n_slots * 3)
{
size_t old_n_slots = n_slots;