[rtems commit] score: Fix implicit type conversion
Sebastian Huber
sebh at rtems.org
Mon Feb 1 06:20:12 UTC 2021
Module: rtems
Branch: master
Commit: 9e56c850330020208602c6ce6b51f1c14efc47ef
Changeset: http://git.rtems.org/rtems/commit/?id=9e56c850330020208602c6ce6b51f1c14efc47ef
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Jan 28 16:52:52 2021 +0100
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 4fdb56d..a8e6de4 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 );
}
/**
More information about the vc
mailing list