aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmarks/eo/eo_bench_eo_add.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks/eo/eo_bench_eo_add.c')
-rw-r--r--src/benchmarks/eo/eo_bench_eo_add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/benchmarks/eo/eo_bench_eo_add.c b/src/benchmarks/eo/eo_bench_eo_add.c
index 462f3b9c56..6f25ce9efd 100644
--- a/src/benchmarks/eo/eo_bench_eo_add.c
+++ b/src/benchmarks/eo/eo_bench_eo_add.c
@@ -12,7 +12,7 @@ bench_eo_add_linear(int request)
int i;
Eo **objs = calloc(request, sizeof(Eo *));
for (i = 0 ; i < request ; i++)
- objs[i] = eo_add(SIMPLE_CLASS, NULL);
+ eo_add(objs[i], SIMPLE_CLASS, NULL);
for (i = 0 ; i < request ; i++)
eo_unref(objs[i]);
@@ -25,13 +25,13 @@ bench_eo_add_jump_by_2(int request)
int i;
Eo **objs = calloc(request, sizeof(Eo *));
for (i = 0 ; i < request ; i++)
- objs[i] = eo_add(SIMPLE_CLASS, NULL);
+ eo_add(objs[i], SIMPLE_CLASS, NULL);
for (i = 0 ; i < request ; i += 2)
eo_unref(objs[i]);
for (i = 0 ; i < request ; i += 2)
- objs[i] = eo_add(SIMPLE_CLASS, NULL);
+ eo_add(objs[i], SIMPLE_CLASS, NULL);
for (i = 0 ; i < request ; i++)
eo_unref(objs[i]);