Use c-style cast as in original

static_cast does not work
This commit is contained in:
Georg Baum 2016-05-05 19:28:11 +02:00 committed by Richard Heck
parent 127e5b1955
commit 637fbb7ac9

View File

@ -1065,7 +1065,7 @@ cmd_ret const runCommand(string const & cmd)
0, 0, &startup, &process)) {
CloseHandle(process.hThread);
int fno = _open_osfhandle(static_cast<intptr_t>(in), _O_RDONLY);
int fno = _open_osfhandle((intptr_t)in, _O_RDONLY);
CloseHandle(out);
inf = _fdopen(fno, "r");
}