From 8da81e7a625f06ec667793ff624c6876d03abbde Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sun, 19 Sep 2021 13:49:41 +0200 Subject: Fixed errors caused by gcc -std=c99 -pedantic. --- benchmarks/cpque_benchmark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'benchmarks/cpque_benchmark.cpp') diff --git a/benchmarks/cpque_benchmark.cpp b/benchmarks/cpque_benchmark.cpp index 2b6445c5..5f7dd364 100644 --- a/benchmarks/cpque_benchmark.cpp +++ b/benchmarks/cpque_benchmark.cpp @@ -2,7 +2,7 @@ #include #include -#define i_tag x +#define i_tag f #define i_val float #define i_cmp -c_default_compare #include @@ -18,7 +18,7 @@ int main() rng = stc64_init(seed); clock_t start = clock(); c_forrange (i, int, N) - cvec_f_push_back(&pq, (float) stc64_randf(&rng)*100000); + cpque_f_push_back(&pq, (float) stc64_randf(&rng)*100000); cpque_f_make_heap(&pq); printf("Built priority queue: %f secs\n", (clock() - start) / (float) CLOCKS_PER_SEC); -- cgit v1.2.3