Skip to content

Commit

Permalink
fix: Change STATUS_NOT_FOUND to ~0 for u8 in rust
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonIT committed Oct 13, 2023
1 parent dd62f41 commit 1c0d510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/include/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ typedef enum {
*/
#define STATUS_ON_RUNQUEUE STATUS_RUNNING /**< to check if on run queue:
`st >= STATUS_ON_RUNQUEUE` */
#define STATUS_NOT_FOUND ((thread_status_t)-1) /**< Describes an illegal thread status */
#define STATUS_NOT_FOUND ((thread_status_t)~0) /**< Describes an illegal thread status */
/** @} */
/**
* @def SCHED_PRIO_LEVELS

Check warning on line 190 in core/include/sched.h

View workflow job for this annotation

GitHub Actions / static-tests

Uncrustify proposes the following patch: --- a/core/include/sched.h +++ b/core/include/sched.h @@ -184,7 +184,7 @@ typedef enum { */ #define STATUS_ON_RUNQUEUE STATUS_RUNNING /**< to check if on run queue: `st >= STATUS_ON_RUNQUEUE` */ -#define STATUS_NOT_FOUND ((thread_status_t)~0) /**< Describes an illegal thread status */ +#define STATUS_NOT_FOUND ((thread_status_t) ~0) /**< Describes an illegal thread status */ /** @} */ /** * @def SCHED_PRIO_LEVELS
Expand Down

0 comments on commit 1c0d510

Please sign in to comment.