diff options
| author | Tyge Løvset <[email protected]> | 2021-09-19 13:49:41 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-09-19 13:49:41 +0200 |
| commit | 8da81e7a625f06ec667793ff624c6876d03abbde (patch) | |
| tree | f1c09759a45b42fdff374b9bde009a9356dffe29 /benchmarks/cpque_benchmark.cpp | |
| parent | 58b2831a7287cb00d14a221a9d0263fb0c427675 (diff) | |
| download | STC-modified-8da81e7a625f06ec667793ff624c6876d03abbde.tar.gz STC-modified-8da81e7a625f06ec667793ff624c6876d03abbde.zip | |
Fixed errors caused by gcc -std=c99 -pedantic.
Diffstat (limited to 'benchmarks/cpque_benchmark.cpp')
| -rw-r--r-- | benchmarks/cpque_benchmark.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 <time.h>
#include <stc/crandom.h>
-#define i_tag x
+#define i_tag f
#define i_val float
#define i_cmp -c_default_compare
#include <stc/cpque.h>
@@ -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);
|
