forked from enlightenment/efl
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:
parent
741a4313f0
commit
594d5077cd
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue