pubsubclient icon indicating copy to clipboard operation
pubsubclient copied to clipboard

compare between unsigned integer and integer in PubSubClient.cpp

Open spellbinder103 opened this issue 2 years ago • 0 comments

when i compile INO file with Arduino IDE i saw some non-critical warning message, after i investigate i found some curious in PubSubClient.cpp file.

at line 481, unsigned int rc = 0; at line 487, int expectedLength; and... at line 523, return (rc == expectedLength);

compiler warning message is: comparison of integer expressions of different signedness: 'unsigned int' and 'int'

expectedLength shall change from int to unsigned int?

spellbinder103 avatar Apr 06 '23 01:04 spellbinder103