]> git.lyx.org Git - features.git/commitdiff
Use c-style cast as in original
authorGeorg Baum <baum@lyx.org>
Thu, 5 May 2016 17:28:11 +0000 (19:28 +0200)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:43 +0000 (17:55 -0400)
static_cast does not work

src/support/filetools.cpp

index 657343fb935b17b92915a442ba5c6437a797a9d3..a72c93ed610ce7c711df4eab94f2d8d0f7ae7446 100644 (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");
                }