From 108ee1d1a320e64eda1d02c07aa75d8448bcef9d Mon Sep 17 00:00:00 2001 From: Jean-Roland Gosse Date: Thu, 5 Dec 2024 15:03:24 +0100 Subject: [PATCH] fix: cast error (#28) --- include/zenoh-pico/protocol/definitions/network.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/zenoh-pico/protocol/definitions/network.h b/include/zenoh-pico/protocol/definitions/network.h index 2f2f838c9..bf056aaf6 100644 --- a/include/zenoh-pico/protocol/definitions/network.h +++ b/include/zenoh-pico/protocol/definitions/network.h @@ -87,7 +87,7 @@ static inline _z_qos_t _z_n_qos_create(bool express, z_congestion_control_t cong return ret; } static inline z_priority_t _z_n_qos_get_priority(_z_n_qos_t n_qos) { - z_priority_t ret = n_qos._val & 0x07; // 0b0111 + z_priority_t ret = (z_priority_t)(n_qos._val & 0x07); // 0b0111 return ret; } static inline z_congestion_control_t _z_n_qos_get_congestion_control(_z_n_qos_t n_qos) {