From 030fe1d90878c6bcdfe771e4d933e859ca023698 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 3 Apr 2015 09:40:49 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7846 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chdebug.h | 4 ++-- os/rt/include/chsys.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'os/rt/include') 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 /** @} */ /*===========================================================================*/ -- cgit v1.2.3