summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-01-29 07:22:21 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-01 06:26:18 +0100
commit9523887904159c27730fd3d78114e9825c683f8b (patch)
tree43cd18b4d62fb842e7b866ece2f18475a61b0fe3 /cpukit/include
parentscore: Remove unused _SMP_Assert() (diff)
downloadrtems-9523887904159c27730fd3d78114e9825c683f8b.tar.bz2
rtems: Fix implicit type conversions
This fix relates to a Coverity issue (PW.MIXED_ENUM_TYPE).
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/rtems/timerimpl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/include/rtems/rtems/timerimpl.h b/cpukit/include/rtems/rtems/timerimpl.h
index 840005d538..8d245d7e5b 100644
--- a/cpukit/include/rtems/rtems/timerimpl.h
+++ b/cpukit/include/rtems/rtems/timerimpl.h
@@ -117,9 +117,9 @@ RTEMS_INLINE_ROUTINE bool _Timer_Is_interval_class(
Timer_Classes the_class
)
{
- Timer_Classes mask =
- TIMER_CLASS_BIT_NOT_DORMANT | TIMER_CLASS_BIT_TIME_OF_DAY;
+ int mask;
+ mask = TIMER_CLASS_BIT_NOT_DORMANT | TIMER_CLASS_BIT_TIME_OF_DAY;
return ( the_class & mask ) == TIMER_CLASS_BIT_NOT_DORMANT;
}
@@ -127,9 +127,9 @@ RTEMS_INLINE_ROUTINE bool _Timer_Is_on_task_class(
Timer_Classes the_class
)
{
- Timer_Classes mask =
- TIMER_CLASS_BIT_NOT_DORMANT | TIMER_CLASS_BIT_ON_TASK;
+ int mask;
+ mask = TIMER_CLASS_BIT_NOT_DORMANT | TIMER_CLASS_BIT_ON_TASK;
return ( the_class & mask ) == mask;
}