Fix compile error with clang and --enable-werror

pull/573/head
Tatsuhiro Tsujikawa 2016-02-13 16:33:47 +09:00
parent 40299851a6
commit c245c5ecc6
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ DHTMessageTracker::messageArrived(const Dict* dict, const std::string& ipaddr,
auto rtt = std::chrono::duration_cast<std::chrono::milliseconds>(
entry->getElapsed());
A2_LOG_DEBUG(fmt("RTT is %" PRId64 "", rtt.count()));
A2_LOG_DEBUG(
fmt("RTT is %" PRId64 "", static_cast<int64_t>(rtt.count())));
message->getRemoteNode()->updateRTT(rtt);
if (*targetNode != *message->getRemoteNode()) {
// Node ID has changed. Drop previous node ID from