From 79b1b8c8873cc5c4393d20012c8ec87981d36394 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 16 Sep 2024 18:56:22 +0200 Subject: [PATCH] [LoRaWAN] Fixed size_t comparison (CI_BUILD_ALL) --- src/protocols/LoRaWAN/LoRaWAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/LoRaWAN/LoRaWAN.cpp b/src/protocols/LoRaWAN/LoRaWAN.cpp index 7112bcac6..b2ecd50c2 100644 --- a/src/protocols/LoRaWAN/LoRaWAN.cpp +++ b/src/protocols/LoRaWAN/LoRaWAN.cpp @@ -1423,7 +1423,7 @@ int16_t LoRaWANNode::receiveCommon(uint8_t dir, const LoRaWANChannel_t* dlChanne // Any frame received by an end-device containing a MACPayload greater than // the specified maximum length M over the data rate used to receive the frame // SHALL be silently discarded. - if(this->phyLayer->getPacketLength() > maxPayLen + 13) { // mandatory FHDR is 12/13 bytes + if(this->phyLayer->getPacketLength() > (size_t)(maxPayLen + 13)) { // mandatory FHDR is 12/13 bytes return(0); // act as if no downlink was received }