summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dtable.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-06-26 21:36:52 +0000
committerChristopher Faylor <me@cgf.cx>2000-06-26 21:36:52 +0000
commit9cef3cc0d7af7f305df62af6d562d402ebe5398b (patch)
tree326166bf074f1aa9fb95d968c21653850587a101 /winsup/cygwin/dtable.cc
parent5a449743bbcfaccd5e60ffd3e6f62d345802a628 (diff)
downloadcygnal-9cef3cc0d7af7f305df62af6d562d402ebe5398b.tar.gz
cygnal-9cef3cc0d7af7f305df62af6d562d402ebe5398b.tar.bz2
cygnal-9cef3cc0d7af7f305df62af6d562d402ebe5398b.zip
* hinfo.cc (hinfo::dup2): Eliminate compiler warning.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index 9f9d0b65b..dea636105 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -342,7 +342,7 @@ hinfo::dup2 (int oldfd, int newfd)
}
SetResourceLock(LOCK_FD_LIST,WRITE_LOCK|READ_LOCK,"dup");
- if (newfd >= dtable.size || newfd < 0)
+ if ((size_t) newfd >= dtable.size || newfd < 0)
{
syscall_printf ("new fd out of bounds: %d", newfd);
set_errno (EBADF);