From 828dbee9609d8918f4acee5e97da86f42d333604 Mon Sep 17 00:00:00 2001 From: Dave Behnke <916775+dbehnke@users.noreply.github.com> Date: Sun, 28 Dec 2025 04:18:30 -0500 Subject: [PATCH] Fix syntax and comparison errors in M17Protocol.cpp --- reflector/M17Protocol.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reflector/M17Protocol.cpp b/reflector/M17Protocol.cpp index 79cbcfb..ceb97a9 100644 --- a/reflector/M17Protocol.cpp +++ b/reflector/M17Protocol.cpp @@ -229,8 +229,7 @@ void CM17Protocol::OnDvHeaderPacketIn(std::unique_ptr &Header, //////////////////////////////////////////////////////////////////////////////////////// // queue helper - } -} + // Global buffer for partial M17 frames (simple module-based cache) // Note: In a real multi-threaded environment per-module, this should be in m_StreamsCache @@ -327,7 +326,7 @@ void CM17Protocol::HandleQueue(void) // Do we have enough for a full M17 frame? (2x input frames) // M17 Frame is 40ms. Input is 20ms. So we need 2 inputs. // Expected size: 16 bytes for 3200, 8 bytes for 1600. - int targetSize = bytesPerFrame * 2; + size_t targetSize = (size_t)(bytesPerFrame * 2); if (buf.size() >= targetSize || packet->IsLastPacket()) {