Fix windows compile errors/warnings

This commit is contained in:
Aleric Inglewood
2012-11-01 03:18:00 +01:00
parent 6c01b6da9b
commit 1e1f5e8193
4 changed files with 21 additions and 17 deletions

View File

@@ -41,6 +41,7 @@
#include <fcntl.h>
#endif
#include <deque>
#include <cctype>
// On linux, add -DDEBUG_WINDOWS_CODE_ON_LINUX to test the windows code used in this file.
#if !defined(DEBUG_WINDOWS_CODE_ON_LINUX) || !defined(LL_LINUX) || defined(LL_RELEASE)
@@ -1615,8 +1616,8 @@ CURLMcode MultiHandle::remove_easy_request(addedEasyRequests_type::iterator cons
void MultiHandle::check_run_count(void)
{
llassert(mAddedEasyRequests.size() >= mRunningHandles);
if (mAddedEasyRequests.size() - mRunningHandles > 0) // There is no need to do this when all easy handles are accounted for.
llassert(mAddedEasyRequests.size() >= (size_t)mRunningHandles);
if (mAddedEasyRequests.size() - (size_t)mRunningHandles > 0) // There is no need to do this when all easy handles are accounted for.
{
CURLMsg const* msg;
int msgs_left;