diff options
Diffstat (limited to 'collections/map/map.c')
-rw-r--r-- | collections/map/map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/collections/map/map.c b/collections/map/map.c index 62cb016..00f2225 100644 --- a/collections/map/map.c +++ b/collections/map/map.c @@ -102,7 +102,7 @@ void *key, *val; return -1; } -void* map_reset_key(root, key) +void* map_set_key(root, key) map *root; void *key; { @@ -115,10 +115,10 @@ void *key; cmp = root->cmp(root->key, key); if (cmp < 0) - return map_reset_key(root->left, key); + return map_set_key(root->left, key); if (cmp > 0) - return map_reset_key(root->right, key); + return map_set_key(root->right, key); tmp = root->key; root->key = key; |