nghttpx: Fix compile error with gcc

This commit is contained in:
Tatsuhiro Tsujikawa 2017-11-04 17:30:27 +09:00
parent 16e9036568
commit 88abbce7e7
1 changed files with 2 additions and 1 deletions

View File

@ -1057,7 +1057,8 @@ ClientHandler::get_downstream_connection(int &err, Downstream *downstream) {
it = std::begin(affinity_hash);
}
auto aff_idx = std::distance(std::begin(affinity_hash), it);
auto aff_idx =
static_cast<size_t>(std::distance(std::begin(affinity_hash), it));
auto idx = (*it).idx;
auto addr = &shared_addr->addrs[idx];