summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-01-28 16:52:52 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-01 06:26:16 +0100
commit9e56c850330020208602c6ce6b51f1c14efc47ef (patch)
tree501034adf1cea9169b3e6d9b223322068b362129 /cpukit/include/rtems/score
parentrtems: Fix explicit type conversion (diff)
downloadrtems-9e56c850330020208602c6ce6b51f1c14efc47ef.tar.bz2
score: Fix implicit type conversion
This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
Diffstat (limited to 'cpukit/include/rtems/score')
-rw-r--r--cpukit/include/rtems/score/watchdogimpl.h2
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 );
}
/**