diff --git a/src/PubSubClient.cpp b/src/PubSubClient.cpp index 2b48d2b6..f9d921ce 100755 --- a/src/PubSubClient.cpp +++ b/src/PubSubClient.cpp @@ -520,7 +520,7 @@ boolean PubSubClient::publish_P(const char* topic, const uint8_t* payload, unsig expectedLength = 1 + llen + 2 + tlen + plength; - return (rc == expectedLength); + return (rc == (unsigned int)expectedLength); } boolean PubSubClient::beginPublish(const char* topic, unsigned int plength, boolean retained) {