diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-10 10:24:19 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-10 10:24:19 +0000 |
commit | 014976ee109e90dec11591118a4ab0d88c00118f (patch) | |
tree | 7d53cbc697223e7603430157cb1976f3573ac7e1 /os/rt/ports | |
parent | e801a6adb4c12d337963398fa63867aae98f7630 (diff) | |
download | ChibiOS-014976ee109e90dec11591118a4ab0d88c00118f.tar.gz ChibiOS-014976ee109e90dec11591118a4ab0d88c00118f.tar.bz2 ChibiOS-014976ee109e90dec11591118a4ab0d88c00118f.zip |
Added strong type checks to the code rules.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7746 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/ports')
-rw-r--r-- | os/rt/ports/SIMIA32/chcore.h | 2 |
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;
}
/**
|