summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_promise.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_promise.c')
-rw-r--r--src/lib/eina/eina_promise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eina/eina_promise.c b/src/lib/eina/eina_promise.c
index b9adbe8e4d..222f7d5613 100644
--- a/src/lib/eina/eina_promise.c
+++ b/src/lib/eina/eina_promise.c
@@ -1393,7 +1393,7 @@ static Eina_Value
1393_eina_future_cb_ignore_error(void *data, const Eina_Value value, 1393_eina_future_cb_ignore_error(void *data, const Eina_Value value,
1394 const Eina_Future *dead_future EINA_UNUSED) 1394 const Eina_Future *dead_future EINA_UNUSED)
1395{ 1395{
1396 Eina_Error expected_err = (Eina_Error)(long)data; 1396 Eina_Error expected_err = (Eina_Error)(intptr_t)data;
1397 1397
1398 if (value.type == EINA_VALUE_TYPE_ERROR) 1398 if (value.type == EINA_VALUE_TYPE_ERROR)
1399 { 1399 {
@@ -1411,7 +1411,7 @@ _eina_future_cb_ignore_error(void *data, const Eina_Value value,
1411EAPI Eina_Future_Desc 1411EAPI Eina_Future_Desc
1412eina_future_cb_ignore_error(Eina_Error err) 1412eina_future_cb_ignore_error(Eina_Error err)
1413{ 1413{
1414 return (Eina_Future_Desc){ _eina_future_cb_ignore_error, (void *)(long)err, NULL }; 1414 return (Eina_Future_Desc){ _eina_future_cb_ignore_error, (void*)(uintptr_t)err, NULL };
1415} 1415}
1416 1416
1417EAPI void 1417EAPI void