From 878d0d830584cf04217f9460a5830be5bf23204d Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 9 Dec 2019 03:15:55 +0100 Subject: bplist: Silence compiler warning --- src/bplist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/bplist.c b/src/bplist.c index ec4ebe2..23e28fe 100644 --- a/src/bplist.c +++ b/src/bplist.c @@ -740,8 +740,8 @@ static plist_t parse_bin_node_at_index(struct bplist_data *bplist, uint32_t node } /* store node_index for current recursion level */ - if (ptr_array_size(bplist->used_indexes) < bplist->level+1) { - while (ptr_array_size(bplist->used_indexes) < bplist->level+1) { + if ((uint32_t)ptr_array_size(bplist->used_indexes) < bplist->level+1) { + while ((uint32_t)ptr_array_size(bplist->used_indexes) < bplist->level+1) { ptr_array_add(bplist->used_indexes, (void*)(uintptr_t)node_index); } } else { -- cgit v1.1-32-gdbae