summaryrefslogtreecommitdiffstats
path: root/src/io/sys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/sys.cpp')
-rw-r--r--src/io/sys.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/io/sys.cpp b/src/io/sys.cpp
index f25575c9c..34160b648 100644
--- a/src/io/sys.cpp
+++ b/src/io/sys.cpp
@@ -412,10 +412,9 @@ dup_noninherited (int fd,
GetCurrentProcess (), &filehandle,
0, FALSE, DUPLICATE_SAME_ACCESS);
close (fd);
- return _open_osfhandle ((LONG_PTR) filehandle, mode | _O_NOINHERIT);
+ return _open_osfhandle(reinterpret_cast<LONG_PTR>(filehandle), mode | _O_NOINHERIT);
}
-
/* The helper process writes a status report back to us, through a
* pipe, consisting of two ints.
*/