compat/mingw.c: Add cast of handle to fix warning

[js: whitespace removed]

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
This commit is contained in:
Steffen Prohaska
2007-11-17 20:27:40 +01:00
committed by Johannes Sixt
parent d51703c665
commit 8ddaf895a8

View File

@@ -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]);