diff --git a/compat/mingw.c b/compat/mingw.c index 0456319ba6..b18231e903 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -235,7 +235,7 @@ int pipe(int filedes[2]) CloseHandle(h[0]); return -1; } - fd = _open_osfhandle(h[0], O_NOINHERIT); + fd = _open_osfhandle((int)h[0], O_NOINHERIT); if (fd < 0) { close(filedes[0]); close(filedes[1]); @@ -245,7 +245,7 @@ int pipe(int filedes[2]) } close(filedes[0]); filedes[0] = fd; - fd = _open_osfhandle(h[1], O_NOINHERIT); + fd = _open_osfhandle((int)h[1], O_NOINHERIT); if (fd < 0) { close(filedes[0]); close(filedes[1]);