diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-08 23:26:51 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-09 21:39:43 +0900 |
| commit | 7989cd898dc0bfef40ab1a7e2b747676620d6517 (patch) | |
| tree | 62552567c7890a84b3acd12c899ff9235e2523ee /src/FileEntry.cc | |
| parent | 30e0e19e671697f8f62b43b1e03772ad29ca2407 (diff) | |
Use int or int32_t instead of size_t where suitable
Diffstat (limited to 'src/FileEntry.cc')
| -rw-r--r-- | src/FileEntry.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FileEntry.cc b/src/FileEntry.cc index 43a226aa..42163890 100644 --- a/src/FileEntry.cc +++ b/src/FileEntry.cc @@ -149,7 +149,7 @@ FileEntry::getRequest if(req->setUri(uri)) { if(std::count(inFlightHosts.begin(), inFlightHosts.end(),req->getHost()) - >= static_cast<int>(maxConnectionPerServer_)) { + >= maxConnectionPerServer_) { pending.push_back(uri); ignoreHost.push_back(req->getHost()); req.reset(); @@ -250,10 +250,10 @@ FileEntry::findFasterRequest continue; } if(std::count(inFlightHosts.begin(), inFlightHosts.end(),us.host) - >= static_cast<int>(maxConnectionPerServer_)) { + >= maxConnectionPerServer_) { A2_LOG_DEBUG(fmt("%s has already used %d times, not considered.", (*i).c_str(), - static_cast<int>(maxConnectionPerServer_))); + maxConnectionPerServer_)); continue; } if(findSecond(usedHosts.begin(), usedHosts.end(), us.host) != |
