From b45b6b442f0e3f821921a48f957944f485adfd1b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 10 Sep 2021 20:11:27 -0400 Subject: Fix conversion warnings --- src/btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/btree.c b/src/btree.c index 9e6d285..49b7516 100644 --- a/src/btree.c +++ b/src/btree.c @@ -581,7 +581,7 @@ zix_btree_remove_max(ZixBTree* const t, ZixBTreeNode* n) while (!n->is_leaf) { if (zix_btree_node_is_minimal(zix_btree_child(n, n->n_vals))) { // Leftmost child is minimal, must expand - if (!zix_btree_node_is_minimal(zix_btree_child(n, n->n_vals - 1))) { + if (!zix_btree_node_is_minimal(zix_btree_child(n, n->n_vals - 1u))) { // Child's left sibling has at least one key to steal n = zix_btree_rotate_right(n, n->n_vals); } else { -- cgit v1.2.1