Fixed bug #478.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6803 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
d90b1f5b37
commit
dfa8eb9c08
|
@ -327,7 +327,7 @@ static inline bool chThdTerminatedX(thread_t *tp) {
|
|||
*/
|
||||
static inline bool chThdShouldTerminateX(void) {
|
||||
|
||||
return (bool)(chThdGetSelfX()->p_flags & CH_FLAG_TERMINATE);
|
||||
return (bool)((chThdGetSelfX()->p_flags & CH_FLAG_TERMINATE) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue