cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3ef87a251b0324e24accfc4ef6fc0e257d0d1944

commit 3ef87a251b0324e24accfc4ef6fc0e257d0d1944
Author: Cedric BAIL <[email protected]>
Date:   Fri Dec 14 12:30:43 2018 -0800

    eina: use the correct type for casting to avoid issue on Windows.
    
    Reviewed-by: Vincent Torri <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D7458
---
 src/lib/eina/eina_promise.c | 4 ++--
 1 file 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
 _eina_future_cb_ignore_error(void *data, const Eina_Value value,
                              const Eina_Future *dead_future EINA_UNUSED)
 {
-   Eina_Error expected_err = (Eina_Error)(long)data;
+   Eina_Error expected_err = (Eina_Error)(intptr_t)data;
 
    if (value.type == EINA_VALUE_TYPE_ERROR)
      {
@@ -1411,7 +1411,7 @@ _eina_future_cb_ignore_error(void *data, const Eina_Value 
value,
 EAPI Eina_Future_Desc
 eina_future_cb_ignore_error(Eina_Error err)
 {
-   return (Eina_Future_Desc){ _eina_future_cb_ignore_error, (void *)(long)err, 
NULL };
+   return (Eina_Future_Desc){ _eina_future_cb_ignore_error, 
(void*)(uintptr_t)err, NULL };
 }
 
 EAPI void

-- 


Reply via email to