aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include/chdebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/include/chdebug.h')
-rw-r--r--os/rt/include/chdebug.h4
1 files changed, 2 insertions, 2 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