aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-07-25 01:06:09 +0000
committerNIIBE Yutaka <[email protected]>2019-07-25 01:06:09 +0000
commitf93a0358dc82886db12c91180dc82e8bb1258ef0 (patch)
tree982fa70fe53cbbeed61f76325754188664158ffb
parentestream: Fix IS_INVALID_FD. (diff)
downloadlibgpg-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.c2
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);