-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Change STATUS_NOT_FOUND to ~0 for u8 in rust
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 GitHub Actions / static-tests
|
||
|