summaryrefslogtreecommitdiffstats
path: root/src/bplist.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-12-09 03:15:55 +0100
committerGravatar Nikias Bassen2019-12-09 03:15:55 +0100
commit878d0d830584cf04217f9460a5830be5bf23204d (patch)
tree044b99d4c297dfafedcbf3fd8a08687386e447a9 /src/bplist.c
parent6dfedfc7185bd8c8a81c78927661beb6e2132af0 (diff)
downloadlibplist-878d0d830584cf04217f9460a5830be5bf23204d.tar.gz
libplist-878d0d830584cf04217f9460a5830be5bf23204d.tar.bz2
bplist: Silence compiler warning
Diffstat (limited to 'src/bplist.c')
-rw-r--r--src/bplist.c4
1 files changed, 2 insertions, 2 deletions
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 {