mirror of
https://github.com/neovim/neovim.git
synced 2025-12-03 15:33:03 +00:00
Merge pull request #20584 from Fuzzier/type-cast-conin
refactor: explicitly convert HANDLE to intptr_t for _open_osfhandle()
This commit is contained in:
@@ -1683,7 +1683,7 @@ failed:
|
|||||||
HANDLE conin = CreateFile("CONIN$", GENERIC_READ | GENERIC_WRITE,
|
HANDLE conin = CreateFile("CONIN$", GENERIC_READ | GENERIC_WRITE,
|
||||||
FILE_SHARE_READ, (LPSECURITY_ATTRIBUTES)NULL,
|
FILE_SHARE_READ, (LPSECURITY_ATTRIBUTES)NULL,
|
||||||
OPEN_EXISTING, 0, (HANDLE)NULL);
|
OPEN_EXISTING, 0, (HANDLE)NULL);
|
||||||
vim_ignored = _open_osfhandle(conin, _O_RDONLY);
|
vim_ignored = _open_osfhandle((intptr_t)conin, _O_RDONLY);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user