Moving stuff around a bit...

This commit is contained in:
Aleric Inglewood
2012-07-18 01:41:36 +02:00
parent 48ae0d003d
commit 706b9c55c2
3 changed files with 10 additions and 5 deletions

View File

@@ -248,8 +248,8 @@ void PollSet::remove(curl_socket_t s)
// mFdSet.fd_array instead of mFileDescriptors and mIter instead of mNext.
if (FD_ISSET(s, &mFdSet))
{
int i = --mFdSet.fd_count;
llassert(i >= 0);
llassert(mFdSet.fd_count > 0);
unsigned int i = --mFdSet.fd_count;
curl_socket_t cur = mFdSet.fd_array[i];
while (cur != s)
{
@@ -258,7 +258,7 @@ void PollSet::remove(curl_socket_t s)
mFileDescriptors[i] = cur;
cur = next;
}
if (mIter > (unsigned int)i)
if (mIter > i)
--mIter;
llassert(mIter <= mFdSet.fd_count);
}