This commit is contained in:
Gregory Burd 2024-03-23 21:07:57 -04:00
parent 8198714190
commit f2b7048036
2 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@ sprintf_slex_node(slex_node_t *node, char *buf)
* extract data from within your nodes.
*/
SKIPLIST_KV_ACCESS(
slex, api_, int, char *,
slex, api_, key, int, value, char *,
/* query blk */ { query.key = key; },
/* return blk */ { return node->value; })
@ -179,7 +179,7 @@ shuffle(int *array, size_t n)
}
}
#define TEST_ARRAY_SIZE 5
#define TEST_ARRAY_SIZE 8
int
main()

View file

@ -1474,7 +1474,7 @@
} \
if (fn) { \
fn(node, buf); \
fprintf(os, " <f0> \u219F %zu \u226B %s \"\n", node->field.sle.height, buf); \
fprintf(os, " <f0> \u219F %zu \u226B %s \"\n", node->field.sle.height + 1, buf); \
} else { \
fprintf(os, " <f0> \u219F %zu \"\n", node->field.sle.height); \
} \