diff options
-rw-r--r-- | src/bplist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bplist.c b/src/bplist.c index c8f5ebc..851ecd6 100644 --- a/src/bplist.c +++ b/src/bplist.c @@ -758,8 +758,8 @@ static plist_t parse_bin_node_at_index(struct bplist_data *bplist, uint32_t node /* recursion check */ if (bplist->level > 0) { for (i = bplist->level-1; i >= 0; i--) { - uint32_t node_i = (uint32_t)(uintptr_t)ptr_array_index(bplist->used_indexes, i); - uint32_t node_level = (uint32_t)(uintptr_t)ptr_array_index(bplist->used_indexes, bplist->level); + void *node_i = ptr_array_index(bplist->used_indexes, i); + void *node_level = ptr_array_index(bplist->used_indexes, bplist->level); if (node_i == node_level) { PLIST_BIN_ERR("recursion detected in binary plist\n"); return NULL; |