summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/plotbench/clist_benchmark.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-07-31 13:03:32 +0200
committerTyge Løvset <[email protected]>2022-07-31 13:03:32 +0200
commitbc3f6613ba44adcecacbdd106c840e8b6c054e22 (patch)
tree9d1d72d8c207592cb25f4892222feaddd22c8b79 /benchmarks/plotbench/clist_benchmark.cpp
parent8a5478f7c14d4c7476d36b137fd7d2c8d95f2c13 (diff)
downloadSTC-modified-bc3f6613ba44adcecacbdd106c840e8b6c054e22.tar.gz
STC-modified-bc3f6613ba44adcecacbdd106c840e8b6c054e22.zip
VERSION 3.9: API change in c_forrange() with >= 3 args. csview updates.
Diffstat (limited to 'benchmarks/plotbench/clist_benchmark.cpp')
-rw-r--r--benchmarks/plotbench/clist_benchmark.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/plotbench/clist_benchmark.cpp b/benchmarks/plotbench/clist_benchmark.cpp
index ddd1e2f0..fad44ed5 100644
--- a/benchmarks/plotbench/clist_benchmark.cpp
+++ b/benchmarks/plotbench/clist_benchmark.cpp
@@ -106,10 +106,10 @@ Sample test_stc_forward_list() {
int main(int argc, char* argv[])
{
Sample std_s[SAMPLES + 1], stc_s[SAMPLES + 1];
- c_forrange (i, int, SAMPLES) {
+ c_forrange (int, i, SAMPLES) {
std_s[i] = test_std_forward_list();
stc_s[i] = test_stc_forward_list();
- if (i > 0) c_forrange (j, int, N_TESTS) {
+ if (i > 0) c_forrange (int, j, N_TESTS) {
if (secs(std_s[i].test[j]) < secs(std_s[0].test[j])) std_s[0].test[j] = std_s[i].test[j];
if (secs(stc_s[i].test[j]) < secs(stc_s[0].test[j])) stc_s[0].test[j] = stc_s[i].test[j];
if (stc_s[i].test[j].sum != stc_s[0].test[j].sum) printf("Error in sum: test %d, sample %d\n", i, j);