aboutsummaryrefslogtreecommitdiffstats
path: root/os/nil/include/ch.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/nil/include/ch.h')
-rw-r--r--os/nil/include/ch.h2
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.