aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/src/chregistry.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-03-10 10:24:19 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-03-10 10:24:19 +0000
commit014976ee109e90dec11591118a4ab0d88c00118f (patch)
tree7d53cbc697223e7603430157cb1976f3573ac7e1 /os/rt/src/chregistry.c
parente801a6adb4c12d337963398fa63867aae98f7630 (diff)
downloadChibiOS-014976ee109e90dec11591118a4ab0d88c00118f.tar.gz
ChibiOS-014976ee109e90dec11591118a4ab0d88c00118f.tar.bz2
ChibiOS-014976ee109e90dec11591118a4ab0d88c00118f.zip
Added strong type checks to the code rules.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7746 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/src/chregistry.c')
-rw-r--r--os/rt/src/chregistry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/src/chregistry.c b/os/rt/src/chregistry.c
index 162d69bf2..aacadf22c 100644
--- a/os/rt/src/chregistry.c
+++ b/os/rt/src/chregistry.c
@@ -164,7 +164,7 @@ thread_t *chRegNextThread(thread_t *tp) {
}
#if CH_CFG_USE_DYNAMIC == TRUE
else {
- chDbgAssert(ntp->p_refs < 255U, "too many references");
+ chDbgAssert(ntp->p_refs < (trefs_t)255, "too many references");
ntp->p_refs++;
}
#endif