src/utils_heap.c: Fix calculation of the parent's index.