]> sourceware.org Git - newlib-cygwin.git/commitdiff
* hinfo.cc (hinfo::dup2): Eliminate compiler warning.
authorChristopher Faylor <me@cgf.cx>
Mon, 26 Jun 2000 21:36:52 +0000 (21:36 +0000)
committerChristopher Faylor <me@cgf.cx>
Mon, 26 Jun 2000 21:36:52 +0000 (21:36 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/dtable.cc

index 59a963fea57a7ac7c3990c4f3ac62a86c087c081..dcfee80e9eff9b76e8476df78126e23901c5ba4c 100644 (file)
@@ -1,3 +1,7 @@
+Mon Jun 26 17:34:54 2000  Christopher Faylor <cgf@cygnus.com>
+
+       * hinfo.cc (hinfo::dup2): Eliminate compiler warning.
+
 Mon Jun 26 11:25:29 2000  Christopher Faylor <cgf@cygnus.com>
 
        * hinfo.cc (hinfo::dup2): Guard against out of bounds newfd.
index 9f9d0b65b2da8398b3ea8ee2180086eb281ed366..dea6361052fb60b39f4829bf124a17c1cbf63fde 100644 (file)
@@ -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);
This page took 0.035544 seconds and 5 git commands to generate.