aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);