From: Georg Baum Date: Thu, 5 May 2016 17:28:11 +0000 (+0200) Subject: Use c-style cast as in original X-Git-Tag: 2.3.0alpha1~1643^2~50 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=637fbb7ac9f43aac5bcfc09adca0e5ca0631a14b;p=features.git Use c-style cast as in original static_cast does not work --- diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index 657343fb93..a72c93ed61 100644 --- a/src/support/filetools.cpp +++ b/src/support/filetools.cpp @@ -1065,7 +1065,7 @@ cmd_ret const runCommand(string const & cmd) 0, 0, &startup, &process)) { CloseHandle(process.hThread); - int fno = _open_osfhandle(static_cast(in), _O_RDONLY); + int fno = _open_osfhandle((intptr_t)in, _O_RDONLY); CloseHandle(out); inf = _fdopen(fno, "r"); }