diff --git a/libi2pd_client/TorrentsDHT.cpp b/libi2pd_client/TorrentsDHT.cpp index 9303038a..500ac2c2 100644 --- a/libi2pd_client/TorrentsDHT.cpp +++ b/libi2pd_client/TorrentsDHT.cpp @@ -899,7 +899,7 @@ namespace torrents void TorrentsDHT::SendQueryMsg (KRPCQuery query, std::string_view arguments, const i2p::data::IdentHash& toIdent, uint16_t toPort, bool isRaw, std::shared_ptr info) { - uint16_t transactionID = m_Tunnel.GetLocalDestination () ? m_Tunnel.GetLocalDestination ()->GetRng ()() : 1; + uint16_t transactionID = m_Tunnel.GetLocalDestination () ? static_cast(m_Tunnel.GetLocalDestination ()->GetRng ()()) : 1; auto msg = CreateDictionary ({ { "a", arguments }, { "q", CreateByteString (KRPCQueryStr[query]) },