mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
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:
committed by
Johannes Sixt
parent
d51703c665
commit
8ddaf895a8
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user