From 0dfde3c870bb8500ae37df4e01671a54d4f00c5c Mon Sep 17 00:00:00 2001 From: UU Date: Sun, 4 Oct 2026 02:52:24 +0000 Subject: [PATCH] TorrentsDHT: make transaction ID truncation explicit No functional change. --- libi2pd_client/TorrentsDHT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) },