From 9e56c850330020208602c6ce6b51f1c14efc47ef Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 28 Jan 2021 16:52:52 +0100 Subject: [PATCH] score: Fix implicit type conversion This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE). --- cpukit/include/rtems/score/watchdogimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } /**