From f946ed6a1219ecb2142f1d5606b5362e4fb66b53 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 13 Oct 2026 11:01:53 -0400 Subject: [PATCH] fixed possible overflow --- libi2pd/Streaming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/Streaming.cpp b/libi2pd/Streaming.cpp index 954eaa0a..5f6beec4 100644 --- a/libi2pd/Streaming.cpp +++ b/libi2pd/Streaming.cpp @@ -1194,7 +1194,7 @@ namespace stream int32_t lastReceivedSeqn = m_LastReceivedSequenceNumber; // for limit inbound speed auto ts = i2p::util::GetMillisecondsSinceEpoch (); - int numPackets = 0; + int64_t numPackets = 0; bool lostPackets = false; int64_t passedTime = m_PacketACKInterval * INITIAL_WINDOW_SIZE; // in microseconds // while m_LastACKSendTime == 0 if (m_LastACKSendTime)