]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.cpp
Remove non-copyable idioms
[lyx.git] / src / support / filetools.cpp
index 310e621e17a406d94e5b0606767ce4b5364e1ba7..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((long)in, _O_RDONLY);
+                       int fno = _open_osfhandle((intptr_t)in, _O_RDONLY);
                        CloseHandle(out);
                        inf = _fdopen(fno, "r");
                }