[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: 5dc4f9c7f4f69d38f87275dea1ca35eee47a865e
Changeset: http://git.rtems.org/rtems/commit/?id=5dc4f9c7f4f69d38f87275dea1ca35eee47a865e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Jan 28 11:59:44 2021 +0100
score: Fix implicit type conversion
This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
---
cpukit/include/rtems/rtems/timerimpl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/include/rtems/rtems/timerimpl.h b/cpukit/include/rtems/rtems/timerimpl.h
index c441a04..840005d 100644
--- a/cpukit/include/rtems/rtems/timerimpl.h
+++ b/cpukit/include/rtems/rtems/timerimpl.h
@@ -137,7 +137,7 @@ RTEMS_INLINE_ROUTINE Per_CPU_Watchdog_index _Timer_Watchdog_header_index(
Timer_Classes the_class
)
{
- return ( the_class & TIMER_CLASS_BIT_TIME_OF_DAY );
+ return (Per_CPU_Watchdog_index) ( the_class & TIMER_CLASS_BIT_TIME_OF_DAY );
}
RTEMS_INLINE_ROUTINE Watchdog_Interval _Timer_Get_CPU_ticks(
More information about the vc
mailing list