Evil: fix warning on 64 bits

Summary: int is 32 bits, HANDLE is void *, so cast to uintptr_t in between

Test Plan: compilation

Reviewers: raster, cedric, zmike

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8865
This commit is contained in:
Vincent Torri 2019-05-08 12:19:00 -04:00 committed by Mike Blumenkrantz
parent 741a4313f0
commit 594d5077cd
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ int fcntl(int fd, int cmd, ...)
HANDLE h;
DWORD flag;
h = _is_socket(fd) ? (HANDLE)fd : (HANDLE)_get_osfhandle(fd);
h = _is_socket(fd) ? (HANDLE)(uintptr_t)fd : (HANDLE)_get_osfhandle(fd);
if (h == INVALID_HANDLE_VALUE)
return -1;
@ -64,7 +64,7 @@ int fcntl(int fd, int cmd, ...)
HANDLE h;
long flag;
h = _is_socket(fd) ? (HANDLE)fd : (HANDLE)_get_osfhandle(fd);
h = _is_socket(fd) ? (HANDLE)(uintptr_t)fd : (HANDLE)_get_osfhandle(fd);
if (h == INVALID_HANDLE_VALUE)
return -1;