summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-09-10 20:11:27 -0400
committerDavid Robillard <d@drobilla.net>2021-09-10 20:11:27 -0400
commitb45b6b442f0e3f821921a48f957944f485adfd1b (patch)
tree8c90c3b6842b66f4708ab415e500e1eed41fe0b0 /src
parent87ae32d754d211d1f6510af098c2349a28f17351 (diff)
downloadzix-b45b6b442f0e3f821921a48f957944f485adfd1b.tar.gz
zix-b45b6b442f0e3f821921a48f957944f485adfd1b.tar.bz2
zix-b45b6b442f0e3f821921a48f957944f485adfd1b.zip
Fix conversion warnings
Diffstat (limited to 'src')
-rw-r--r--src/btree.c2
1 files changed, 1 insertions, 1 deletions
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 {