commit | 66fdd39ec5de0055d4a3f82d1133dbec5803222c | [log] [tgz] |
---|---|---|
author | Yong Cong Sin <ycsin@meta.com> | Wed Jan 17 12:36:21 2024 +0800 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Jan 18 10:54:47 2024 +0100 |
tree | dec4237c8b15ce64ec026e492332a53f60fcb049 | |
parent | 45c554d082d44de144dd2f8956ba115855f52ff5 [diff] |
posix: pthread: fix `zephyr_to_posix_priority` assert test If `z_prio` is negative and we want to make sure that it is within `[-CONFIG_NUM_COOP_PRIORITIES, -1]`, we should invert its sign and make sure that it is `<=` `CONFIG_NUM_COOP_PRIORITIES` instead of `<`. Signed-off-by: Yong Cong Sin <ycsin@meta.com>