We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a210f74 + 3736827 commit cd1d712Copy full SHA for cd1d712
src/map.c
@@ -221,7 +221,7 @@ static void rb_remove(map_t rb, map_node_t *node)
221
pathp = path;
222
while (pathp->node) {
223
map_cmp_t cmp = pathp->cmp =
224
- (rb->comparator)(node->data, pathp->node->data);
+ (rb->comparator)(node->key, pathp->node->key);
225
if (cmp == _CMP_LESS) {
226
pathp[1].node = rb_node_get_left(pathp->node);
227
} else {
tests/map/test-map.c
@@ -29,7 +29,7 @@ static int test_map_mixed_operations()
29
*/
30
for (int i = 0; i < N_NODES; i++) {
31
key[i] = i;
32
- val[i] = i + 1;
+ val[i] = mt19937_extract();
33
}
34
35
0 commit comments