Skip to content

Commit

Permalink
fix: cast error (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland authored Dec 5, 2024
1 parent 88fbc3a commit 108ee1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zenoh-pico/protocol/definitions/network.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 108ee1d

Please sign in to comment.