summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/heap.c2
-rw-r--r--examples/inits.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/heap.c b/examples/heap.c
index e1225027..bca5f2e7 100644
--- a/examples/heap.c
+++ b/examples/heap.c
@@ -20,7 +20,7 @@ int main()
c_forrange (i, int, N)
cvec_f_push_back(&pq, (float) crand_i32(&pcg));
- cpqueue_f_build(&pq);
+ cpqueue_f_make_heap(&pq);
printf("Built priority queue: %f secs\n", (clock() - start) / (float) CLOCKS_PER_SEC);
c_forrange (i, int, M)
diff --git a/examples/inits.c b/examples/inits.c
index 26a05a51..ea4c61bc 100644
--- a/examples/inits.c
+++ b/examples/inits.c
@@ -31,7 +31,7 @@ int main(void)
// CVEC PRIORITY QUEUE
- cpqueue_f_build(&floats); // make heap
+ cpqueue_f_make_heap(&floats);
c_push_items(&floats, cpqueue_f, {40.0f, 20.0f, 50.0f, 30.0f, 10.0f});
// sorted: