FreeRTOS / coreMQTT

Client implementation of the MQTT 3.1.1 specification for embedded devices
MIT License
140 stars 100 forks source link

Compile error for comparison of integer expressions of different signedness #282

Closed skyfishyubo closed 5 months ago

skyfishyubo commented 5 months ago

../../../../lib/mqtt_client/coreMQTT/source/core_mqtt.c: In function 'sendConnectWithoutCopy':

../../../../lib/mqtt_client/coreMQTT/source/core_mqtt.c:2220:50: error: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Werror=sign-compare]

     assert( ( pIndex - connectPacketHeader ) <= sizeof( connectPacketHeader ) );
moninom1 commented 5 months ago

Hello @skyfishyubo , Thank you for bringing this to our attention! We will take a look at this issue. Thank you for your patience!

tony-josi-aws commented 5 months ago

@skyfishyubo Closing this issue as #283 should fix this. Please feel free to reopen if you think otherwise.