diff options
Diffstat (limited to 'src/include/lib/binaryheap.h')
-rw-r--r-- | src/include/lib/binaryheap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/lib/binaryheap.h b/src/include/lib/binaryheap.h index 19025c08ef1..9f6efb06e3a 100644 --- a/src/include/lib/binaryheap.h +++ b/src/include/lib/binaryheap.h @@ -46,10 +46,10 @@ typedef struct binaryheap bool bh_has_heap_property; /* debugging cross-check */ binaryheap_comparator bh_compare; void *bh_arg; - bh_node_type bh_nodes[FLEXIBLE_ARRAY_MEMBER]; + bh_node_type *bh_nodes; } binaryheap; -extern binaryheap *binaryheap_allocate(int capacity, +extern binaryheap *binaryheap_allocate(int num_nodes, binaryheap_comparator compare, void *arg); extern void binaryheap_reset(binaryheap *heap); |