Skip to content

Commit

Permalink
Make _z_n_qos_make macro even safer
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Sep 11, 2023
1 parent 97f85f8 commit 9296194
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 @@ -63,7 +63,7 @@ typedef struct {
} _z_n_qos_t;

#define _z_n_qos_make(express, nodrop, priority) \
(_z_n_qos_t) { ._val = (((express) << 4) | ((nodrop) << 3) | priority) }
(_z_n_qos_t) { ._val = (((express) << 4) | ((nodrop) << 3) | (priority)) }
#define _Z_N_QOS_DEFAULT _z_n_qos_make(0, 0, 5)

// RESPONSE FINAL message flags:
Expand Down

0 comments on commit 9296194

Please sign in to comment.