diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-01-28 16:52:52 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-01 06:26:16 +0100 |
commit | 9e56c850330020208602c6ce6b51f1c14efc47ef (patch) | |
tree | 501034adf1cea9169b3e6d9b223322068b362129 | |
parent | rtems: Fix explicit type conversion (diff) | |
download | rtems-9e56c850330020208602c6ce6b51f1c14efc47ef.tar.bz2 |
score: Fix implicit type conversion
This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
-rw-r--r-- | cpukit/include/rtems/score/watchdogimpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/watchdogimpl.h b/cpukit/include/rtems/score/watchdogimpl.h index 4fdb56d038..a8e6de4fbe 100644 --- a/cpukit/include/rtems/score/watchdogimpl.h +++ b/cpukit/include/rtems/score/watchdogimpl.h @@ -148,7 +148,7 @@ RTEMS_INLINE_ROUTINE Watchdog_State _Watchdog_Get_state( const Watchdog_Control *the_watchdog ) { - return RB_COLOR( &the_watchdog->Node.RBTree, Node ); + return (Watchdog_State) RB_COLOR( &the_watchdog->Node.RBTree, Node ); } /** |