summaryrefslogtreecommitdiffstats
path: root/zix/tree.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-13 17:25:47 +0200
committerDavid Robillard <d@drobilla.net>2020-08-13 17:25:47 +0200
commit2c00856aa594eeb19dbca5b783815edbd2b282fe (patch)
tree4a901488d5bc194f82fa9cdc210287319b93dbf6 /zix/tree.c
parent15efd87598d434d8ee7dc45af3da70ba5ad6c312 (diff)
downloadzix-2c00856aa594eeb19dbca5b783815edbd2b282fe.tar.gz
zix-2c00856aa594eeb19dbca5b783815edbd2b282fe.tar.bz2
zix-2c00856aa594eeb19dbca5b783815edbd2b282fe.zip
Fix Wno-implicit-int-conversion warnings
Diffstat (limited to 'zix/tree.c')
-rw-r--r--zix/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zix/tree.c b/zix/tree.c
index ab23614..4dd0897 100644
--- a/zix/tree.c
+++ b/zix/tree.c
@@ -566,10 +566,10 @@ zix_tree_remove(ZixTree* t, ZixTreeIter* ti)
if (i->parent) {
if (i == i->parent->left) {
- d_balance = height_change * -1;
+ d_balance = (uint8_t)height_change * -1;
} else {
assert(i == i->parent->right);
- d_balance = height_change;
+ d_balance = (uint8_t)height_change;
}
}
}