summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-12-14 12:30:43 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-12-20 09:57:02 -0800
commit3ef87a251b0324e24accfc4ef6fc0e257d0d1944 (patch)
treeb074e1544bf18a52391c9d777b4410eec16f8b2f /src
parent117d94d90ebb324fe6ca90482349792625c3703d (diff)
eina: use the correct type for casting to avoid issue on Windows.
Reviewed-by: Vincent Torri <vincent.torri@gmail.com> Differential Revision: https://phab.enlightenment.org/D7458
Diffstat (limited to 'src')
-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