ck_hs: Bound delete to local maxim.

ck_pring
Samy Al Bahra 11 years ago
parent aadae2bf13
commit e87a4b78c9

@ -674,9 +674,9 @@ ck_hs_remove(struct ck_hs *hs,
{
void **slot, **first, *object;
struct ck_hs_map *map = hs->map;
unsigned long n_probes;
unsigned long n_probes = ck_hs_map_bound_get(map, h);
slot = ck_hs_map_probe(hs, map, &n_probes, &first, h, key, &object, map->probe_maximum, CK_HS_PROBE);
slot = ck_hs_map_probe(hs, map, &n_probes, &first, h, key, &object, n_probes, CK_HS_PROBE);
if (object == NULL)
return NULL;

Loading…
Cancel
Save