diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-24 21:14:04 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-24 21:14:04 +0000 |
commit | e773b7cf30838eede30a357f83a5a1e37f006fd0 (patch) | |
tree | c4a01d9beb11fbe801442ac52b05b06a0fbfa2e9 /winsup/cygwin/dtable.cc | |
parent | e08a611849d98d2823057994190e97d1d2b4a261 (diff) | |
download | cygnal-e773b7cf30838eede30a357f83a5a1e37f006fd0.tar.gz cygnal-e773b7cf30838eede30a357f83a5a1e37f006fd0.tar.bz2 cygnal-e773b7cf30838eede30a357f83a5a1e37f006fd0.zip |
* dtable.cc (dtable::find_unused_handle): Avoid coercion.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r-- | winsup/cygwin/dtable.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index 95225bb49..bc7a86ee0 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -167,10 +167,9 @@ int dtable::find_unused_handle (int start) { AssertResourceOwner (LOCK_FD_LIST, READ_LOCK); - do { - for (int i = start; i < (int) size; i++) + for (size_t i = start; i < size; i++) /* See if open -- no need for overhead of not_open */ if (fds[i] == NULL) return i; |