summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/dup2.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2006-09-21 09:43:58 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2006-09-21 09:43:58 +0000
commita97f042d6fd72071a604f084ca4c46ba4b015c8b (patch)
tree7db86badf46cf02834fe0243e4b7fef97f77c8c8 /otherlibs/win32unix/dup2.c
parent3c809eac6656d257676438d8adb7bd58d9a18a43 (diff)
Int_val no longer needed
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7630 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/dup2.c')
-rw-r--r--otherlibs/win32unix/dup2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/otherlibs/win32unix/dup2.c b/otherlibs/win32unix/dup2.c
index 0567bdfcf..3f6d37e76 100644
--- a/otherlibs/win32unix/dup2.c
+++ b/otherlibs/win32unix/dup2.c
@@ -37,7 +37,6 @@ CAMLprim value unix_dup2(value fd1, value fd2)
Descr_kind_val(fd2) = Descr_kind_val(fd1);
/* Reflect the dup2 on the CRT fds, if any */
if (CRT_fd_val(fd1) != NO_CRT_FD || CRT_fd_val(fd2) != NO_CRT_FD)
- _dup2(Int_val(win_CRT_fd_of_filedescr(fd1)),
- Int_val(win_CRT_fd_of_filedescr(fd2)));
+ _dup2(win_CRT_fd_of_filedescr(fd1), win_CRT_fd_of_filedescr(fd2));
return Val_unit;
}