diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-01-28 11:59:44 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-01 06:22:20 +0100 |
commit | 5dc4f9c7f4f69d38f87275dea1ca35eee47a865e (patch) | |
tree | a245557159946957ed92aad363de9b3d3ad69cbc | |
parent | bsp/leon3: Fix incompatible function types (diff) | |
download | rtems-5dc4f9c7f4f69d38f87275dea1ca35eee47a865e.tar.bz2 |
score: Fix implicit type conversion
This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
-rw-r--r-- | cpukit/include/rtems/rtems/timerimpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/include/rtems/rtems/timerimpl.h b/cpukit/include/rtems/rtems/timerimpl.h index c441a040e6..840005d538 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( |