summaryrefslogtreecommitdiff
path: root/src/lib/evil
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-05-08 12:19:00 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-08 12:19:00 -0400
commit594d5077cd52c52f3909df8766637622a0b2ddb9 (patch)
tree9b513b8e353c4583a46afb0869ea6388d712c3b9 /src/lib/evil
parent741a4313f0a8ae9019113c6c9df7efe856caf9f1 (diff)
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
Diffstat (limited to 'src/lib/evil')
-rw-r--r--src/lib/evil/evil_fcntl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evil/evil_fcntl.c b/src/lib/evil/evil_fcntl.c
index 26d596a..e222f2b 100644
--- a/src/lib/evil/evil_fcntl.c
+++ b/src/lib/evil/evil_fcntl.c
@@ -44,7 +44,7 @@ int fcntl(int fd, int cmd, ...)
44 HANDLE h; 44 HANDLE h;
45 DWORD flag; 45 DWORD flag;
46 46
47 h = _is_socket(fd) ? (HANDLE)fd : (HANDLE)_get_osfhandle(fd); 47 h = _is_socket(fd) ? (HANDLE)(uintptr_t)fd : (HANDLE)_get_osfhandle(fd);
48 if (h == INVALID_HANDLE_VALUE) 48 if (h == INVALID_HANDLE_VALUE)
49 return -1; 49 return -1;
50 50
@@ -64,7 +64,7 @@ int fcntl(int fd, int cmd, ...)
64 HANDLE h; 64 HANDLE h;
65 long flag; 65 long flag;
66 66
67 h = _is_socket(fd) ? (HANDLE)fd : (HANDLE)_get_osfhandle(fd); 67 h = _is_socket(fd) ? (HANDLE)(uintptr_t)fd : (HANDLE)_get_osfhandle(fd);
68 if (h == INVALID_HANDLE_VALUE) 68 if (h == INVALID_HANDLE_VALUE)
69 return -1; 69 return -1;
70 70