minor name changes to make more sense
This commit is contained in:
+3
-3
@@ -50,13 +50,13 @@ struct UHNode *uc_htable_next_hash_hlp(struct UHNode *next, size_t hash)
|
||||
}
|
||||
|
||||
//find a node, starting at bucket
|
||||
struct UHNode *uc_htable_iter_hlp(struct UHTable *table, size_t bucket)
|
||||
struct UHNode *uc_htable_iter_hlp(struct UHTable *table, size_t start_bucket)
|
||||
{
|
||||
size_t i;
|
||||
struct UHNode *found = NULL;
|
||||
|
||||
//search through buckets until a node is found
|
||||
for (i = bucket; i < table->cnt_buckets; i++) {
|
||||
for (i = start_bucket; i < table->cnt_buckets; i++) {
|
||||
found = uc_htable_first_bucket(table, i);
|
||||
if (found != NULL) {
|
||||
break;
|
||||
@@ -69,7 +69,7 @@ struct UHNode *uc_htable_next(struct UHTable *table, struct UHNode *node)
|
||||
{
|
||||
struct UHNode *found;
|
||||
|
||||
found = uc_htable_next_bucket(node);
|
||||
found = uc_htable_next_in_bucket(node);
|
||||
if (found == NULL) {
|
||||
size_t current_bucket = uc_htable_bucket(table, node->hash);
|
||||
found = uc_htable_iter_hlp(table, current_bucket + 1);
|
||||
|
||||
Reference in New Issue
Block a user