Skip to content

Commit

Permalink
core: Express -1 as ~0 in thread_status_t cast
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonIT committed Oct 15, 2023
1 parent dd62f41 commit d778e2e
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
Expand Down

0 comments on commit d778e2e

Please sign in to comment.