diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-01-26 07:57:35 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-01-26 07:57:35 +0000 |
commit | 2c757aacd0569a7cf824513ec34e5ed976291597 (patch) | |
tree | 7298645184dd4c024b910de9af5e6931c84086b2 /os | |
parent | 450cf7a783d56f84330e24a6255c59c48493cbb3 (diff) | |
download | ChibiOS-2c757aacd0569a7cf824513ec34e5ed976291597.tar.gz ChibiOS-2c757aacd0569a7cf824513ec34e5ed976291597.tar.bz2 ChibiOS-2c757aacd0569a7cf824513ec34e5ed976291597.zip |
MISRA-related fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12585 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os')
-rw-r--r-- | os/nil/include/ch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/nil/include/ch.h b/os/nil/include/ch.h index 8d44d13d3..b50158260 100644 --- a/os/nil/include/ch.h +++ b/os/nil/include/ch.h @@ -1304,7 +1304,7 @@ struct nil_system { *
* @init
*/
-#define chSemObjectInit(sp, n) ((sp)->cnt = n)
+#define chSemObjectInit(sp, n) ((sp)->cnt = (n))
/**
* @brief Performs a wait operation on a semaphore.
|