diff --git a/mongoose.c b/mongoose.c index 615de0c8..0ec51a33 100644 --- a/mongoose.c +++ b/mongoose.c @@ -3452,8 +3452,9 @@ static void mqtt_cb(struct mg_connection *c, int ev, void *ev_data, if (c->is_mqtt5) remaining_len += 2; // 3.4.2 mg_mqtt_send_header( - c, mm.qos == 2 ? MQTT_CMD_PUBREC : MQTT_CMD_PUBACK, 0, - remaining_len); + c, + (uint8_t) (mm.qos == 2 ? MQTT_CMD_PUBREC : MQTT_CMD_PUBACK), + 0, remaining_len); mg_send(c, &id, sizeof(id)); if (c->is_mqtt5) { diff --git a/mongoose.h b/mongoose.h index 3e30a253..1cd5d0ac 100644 --- a/mongoose.h +++ b/mongoose.h @@ -20,7 +20,7 @@ #ifndef MONGOOSE_H #define MONGOOSE_H -#define MG_VERSION "7.10" +#define MG_VERSION "7.11" #ifdef __cplusplus extern "C" { diff --git a/src/version.h b/src/version.h index 8a09c02d..c8903c96 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define MG_VERSION "7.10" +#define MG_VERSION "7.11"