aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/ports
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/ports')
-rw-r--r--os/rt/ports/SIMIA32/chcore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/ports/SIMIA32/chcore.h b/os/rt/ports/SIMIA32/chcore.h
index 943dbaf6e..b313cb9f9 100644
--- a/os/rt/ports/SIMIA32/chcore.h
+++ b/os/rt/ports/SIMIA32/chcore.h
@@ -276,7 +276,7 @@ static inline syssts_t port_get_irq_status(void) {
*/
static inline bool port_irq_enabled(syssts_t sts) {
- return (sts & 1U) == 0U;
+ return (sts & (syssts_t)1) == (syssts_t)0;
}
/**