summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_timer.c
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-03 16:52:03 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-03 17:22:12 -0300
commit8fec0d5139a3ff30037ba159bb62ff2f733d96a8 (patch)
tree0316d756b8150e9ef40d76668e5084fdb06af29a /src/tests/ecore/ecore_test_timer.c
parent1dcccfdf8160ca6113d66c51c226302221b9a049 (diff)
eina: Remove unnecessary indirection to promises
Now when dealing with pointer types, we will not get pointer to pointer semantics in callbacks and eina_promise_owner_value_set for Eina_Promise. It will work as expected: Eina_Promise_Owner* promise = eina_promise_add(); void* p = malloc(sizeof(T)); eina_promise_owner_value_set(promise, p, &free);
Diffstat (limited to '')
-rw-r--r--src/tests/ecore/ecore_test_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/ecore/ecore_test_timer.c b/src/tests/ecore/ecore_test_timer.c
index 2e07b5347b..d073d5d05b 100644
--- a/src/tests/ecore/ecore_test_timer.c
+++ b/src/tests/ecore/ecore_test_timer.c
@@ -179,7 +179,7 @@ static void
179_ecore_promise_quit(void *data, void *value, Eina_Promise* promise EINA_UNUSED) 179_ecore_promise_quit(void *data, void *value, Eina_Promise* promise EINA_UNUSED)
180{ 180{
181 Eina_Bool *bob = data; 181 Eina_Bool *bob = data;
182 double *start = *(double**)value; 182 double *start = value;
183 double delta = ecore_loop_time_get() - *start; 183 double delta = ecore_loop_time_get() - *start;
184 184
185 fail_if(delta - 0.2 > 0.01); 185 fail_if(delta - 0.2 > 0.01);