From bb688514d1c0c07b47807c841c96f8e75b2d004e Mon Sep 17 00:00:00 2001 From: Gijs Noorlander Date: Wed, 13 Nov 2019 13:15:29 +0100 Subject: [PATCH] [pubSubClient] Fix signed/unsigned compare warning --- lib/pubsubclient/src/PubSubClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pubsubclient/src/PubSubClient.cpp b/lib/pubsubclient/src/PubSubClient.cpp index cc898f4a5..68cc2dafa 100644 --- a/lib/pubsubclient/src/PubSubClient.cpp +++ b/lib/pubsubclient/src/PubSubClient.cpp @@ -462,7 +462,7 @@ boolean PubSubClient::publish_P(const char* topic, const uint8_t* payload, unsig } // Header (1 byte) + llen + identifier (2 bytes) + topic len + payload len - const int expectedLength = 1 + llen + 2 + tlen + plength; + const unsigned int expectedLength = 1 + llen + 2 + tlen + plength; return (rc == expectedLength); }