summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-05-15 03:49:17 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2020-05-19 13:58:57 +0200
commit3230c8de9f1083204e5d1a5c7be7a7ed723caf03 (patch)
treed50b5a5b86f0d1ba0425cecbf35dde1263cd34b4
parentd08d26f19f5e28eb1857933d8e4a6b19caf9705c (diff)
tests: eina: fix usage of long on Windows
On Windows 64bits, long is a 4 bytes type. Declare i as being a uintptr_t instead of unsigned long Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D11837
-rw-r--r--src/tests/eina/eina_test_array.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/eina/eina_test_array.c b/src/tests/eina/eina_test_array.c
index de58cdfaec..3373f07ae1 100644
--- a/src/tests/eina/eina_test_array.c
+++ b/src/tests/eina/eina_test_array.c
@@ -177,24 +177,24 @@ EFL_END_TEST
177EFL_START_TEST(eina_array_find_test) 177EFL_START_TEST(eina_array_find_test)
178{ 178{
179 Eina_Array sea; 179 Eina_Array sea;
180 unsigned long i; 180 uintptr_t i;
181 unsigned int out = 0; 181 unsigned int out = 0;
182 182
183 fail_if(eina_array_find(NULL, (void*)1, NULL) != EINA_FALSE); 183 fail_if(eina_array_find(NULL, (void *)1, NULL) != EINA_FALSE);
184 184
185 eina_array_step_set(&sea, sizeof(sea), 5); 185 eina_array_step_set(&sea, sizeof(sea), 5);
186 186
187 for (i =1 ; i < 10 ; i++) 187 for (i = 1 ; i < 10 ; i++)
188 eina_array_push(&sea, (void*)i); 188 eina_array_push(&sea, (void *)i);
189 189
190 fail_if(eina_array_find(&sea, (void*)15, NULL) != EINA_FALSE); 190 fail_if(eina_array_find(&sea, (void *)15, NULL) != EINA_FALSE);
191 191
192 fail_if(eina_array_find(&sea, (void*)5, NULL) != EINA_TRUE); 192 fail_if(eina_array_find(&sea, (void *)5, NULL) != EINA_TRUE);
193 fail_if(eina_array_find(&sea, (void*)6, &out) != EINA_TRUE); 193 fail_if(eina_array_find(&sea, (void *)6, &out) != EINA_TRUE);
194 fail_if(out != 5); 194 fail_if(out != 5);
195 195
196 eina_array_data_set(&sea, 7, (void*)99); 196 eina_array_data_set(&sea, 7, (void *)99);
197 fail_if(eina_array_find(&sea, (void*)99, &out) != EINA_TRUE); 197 fail_if(eina_array_find(&sea, (void *)99, &out) != EINA_TRUE);
198 fail_if(out != 7); 198 fail_if(out != 7);
199 199
200 eina_array_flush(&sea); 200 eina_array_flush(&sea);