diff --git a/source/core_mqtt_serializer.c b/source/core_mqtt_serializer.c index bbb012f87..d41a950fa 100644 --- a/source/core_mqtt_serializer.c +++ b/source/core_mqtt_serializer.c @@ -65,7 +65,7 @@ /** * @brief A PINGREQ packet is always 2 bytes in size, defined by MQTT 3.1.1 spec. */ -#define MQTT_PACKET_PINGREQ_SIZE ( 2U ) +#define MQTT_PACKET_PINGREQ_SIZE ( 2UL ) /** * @brief The Remaining Length field of MQTT disconnect packets, per MQTT spec.