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 | |||
| 758 | /* recursion check */ | 758 | /* recursion check */ |
| 759 | if (bplist->level > 0) { | 759 | if (bplist->level > 0) { |
| 760 | for (i = bplist->level-1; i >= 0; i--) { | 760 | for (i = bplist->level-1; i >= 0; i--) { |
| 761 | uint32_t node_i = (uint32_t)(uintptr_t)ptr_array_index(bplist->used_indexes, i); | 761 | void *node_i = ptr_array_index(bplist->used_indexes, i); |
| 762 | uint32_t node_level = (uint32_t)(uintptr_t)ptr_array_index(bplist->used_indexes, bplist->level); | 762 | void *node_level = ptr_array_index(bplist->used_indexes, bplist->level); |
| 763 | if (node_i == node_level) { | 763 | if (node_i == node_level) { |
| 764 | PLIST_BIN_ERR("recursion detected in binary plist\n"); | 764 | PLIST_BIN_ERR("recursion detected in binary plist\n"); |
| 765 | return NULL; | 765 | return NULL; |
