X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=vector%2Fhashvector.c;h=b39ef5ed2851168e78b0db7c4806b7ec0570c1cb;hb=1d1b4665da461c93dba11aca34656d6ff8858c2e;hp=4d89890e172b0874deafd6329c29d4625f18d936;hpb=d9858ce46cb09b9127c7246f628e65982aa43a15;p=rrq%2Frrqmisc.git diff --git a/vector/hashvector.c b/vector/hashvector.c index 4d89890..b39ef5e 100644 --- a/vector/hashvector.c +++ b/vector/hashvector.c @@ -61,12 +61,12 @@ static void **hashvector_find_slot( void *hashvector_next(hashvector *hv,vector_index *index,void *key) { unsigned long i = index? *index : 0; for ( ; i < hv->table.size; i++ ) { - void **p = hashvector_find_slot( hv, key, &i, 0 ); + void **p = vector_next_used( &hv->table, &i ); if ( p == 0 ) { break; } if ( *p && *p != HV_HOLE ) { - if ( key && hv->type->haskey( hv->type, key, *p ) == 0 ) { + if ( key && hv->type->haskey( hv->type, *p, key ) == 0 ) { continue; } if ( index ) {