summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/cvec_benchmark.cpp
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2021-07-17 12:19:04 +0200
committerTyge Lovset <[email protected]>2021-07-17 12:19:04 +0200
commitd3ee4ed5d2a76d12e7c905b7aa7e1e7c87a49119 (patch)
tree294a7e808badeb9e6229bf3b2ed7b248db59b77a /benchmarks/cvec_benchmark.cpp
parent47c199b646a4205a8e8ff07397101398dea83221 (diff)
downloadSTC-modified-d3ee4ed5d2a76d12e7c905b7aa7e1e7c87a49119.tar.gz
STC-modified-d3ee4ed5d2a76d12e7c905b7aa7e1e7c87a49119.zip
Some refactoring.
Diffstat (limited to 'benchmarks/cvec_benchmark.cpp')
-rw-r--r--benchmarks/cvec_benchmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/cvec_benchmark.cpp b/benchmarks/cvec_benchmark.cpp
index 8a17902c..f85a02a4 100644
--- a/benchmarks/cvec_benchmark.cpp
+++ b/benchmarks/cvec_benchmark.cpp
@@ -89,7 +89,7 @@ Sample test_stc_vector() {
s.test[FIND].sum = sum;
s.test[ITER].t1 = clock();
sum = 0;
- c_forrange (R) c_forrange (i, N) sum += *cvec_x_at(&con, i);
+ c_forrange (R) c_forrange (i, N) sum += con.data[i];
s.test[ITER].t2 = clock();
s.test[ITER].sum = sum;
s.test[DESTRUCT].t1 = clock();