aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/include')
-rw-r--r--os/rt/include/chdebug.h4
-rw-r--r--os/rt/include/chsys.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/os/rt/include/chdebug.h b/os/rt/include/chdebug.h
index 893ec26b1..c4fd39f39 100644
--- a/os/rt/include/chdebug.h
+++ b/os/rt/include/chdebug.h
@@ -121,8 +121,8 @@ typedef struct {
/*===========================================================================*/
#if CH_DBG_SYSTEM_STATE_CHECK == TRUE
-#define _dbg_enter_lock() (ch.dbg.lock_cnt = 1)
-#define _dbg_leave_lock() (ch.dbg.lock_cnt = 0)
+#define _dbg_enter_lock() (ch.dbg.lock_cnt = (cnt_t)1)
+#define _dbg_leave_lock() (ch.dbg.lock_cnt = (cnt_t)0)
#endif
/* When the state checker feature is disabled then the following functions
diff --git a/os/rt/include/chsys.h b/os/rt/include/chsys.h
index 9d1bff204..a92a67008 100644
--- a/os/rt/include/chsys.h
+++ b/os/rt/include/chsys.h
@@ -38,10 +38,10 @@
* @name Masks of executable integrity checks.
* @{
*/
-#define CH_INTEGRITY_RLIST 1
-#define CH_INTEGRITY_VTLIST 2
-#define CH_INTEGRITY_REGISTRY 4
-#define CH_INTEGRITY_PORT 8
+#define CH_INTEGRITY_RLIST 1U
+#define CH_INTEGRITY_VTLIST 2U
+#define CH_INTEGRITY_REGISTRY 4U
+#define CH_INTEGRITY_PORT 8U
/** @} */
/*===========================================================================*/