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
This commit is contained in:
Cedric BAIL 2018-12-14 12:30:43 -08:00
parent 117d94d90e
commit 3ef87a251b
1 changed files with 2 additions and 2 deletions

View File

@ -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