From f93a0358dc82886db12c91180dc82e8bb1258ef0 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 25 Jul 2019 10:06:09 +0900 Subject: w32: Fix cast to internal fd. * src/estream.c (tmpfd): Use intptr_t. Signed-off-by: NIIBE Yutaka --- src/estream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3