diff options
author | NIIBE Yutaka <[email protected]> | 2019-07-25 01:06:09 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2019-07-25 01:06:09 +0000 |
commit | f93a0358dc82886db12c91180dc82e8bb1258ef0 (patch) | |
tree | 982fa70fe53cbbeed61f76325754188664158ffb | |
parent | estream: Fix IS_INVALID_FD. (diff) | |
download | libgpg-error-f93a0358dc82886db12c91180dc82e8bb1258ef0.tar.gz libgpg-error-f93a0358dc82886db12c91180dc82e8bb1258ef0.zip |
w32: Fix cast to internal fd.
* src/estream.c (tmpfd): Use intptr_t.
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r-- | src/estream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/estream.c b/src/estream.c index 6db20ca..4c66b67 100644 --- a/src/estream.c +++ b/src/estream.c @@ -4564,7 +4564,7 @@ tmpfd (void) #ifdef HAVE_W32CE_SYSTEM int fd = (int)file; #else - int fd = _open_osfhandle ((long)file, 0); + int fd = _open_osfhandle ((intptr_t)file, 0); if (fd == -1) { CloseHandle (file); |