diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-10 10:24:19 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-10 10:24:19 +0000 |
commit | 014976ee109e90dec11591118a4ab0d88c00118f (patch) | |
tree | 7d53cbc697223e7603430157cb1976f3573ac7e1 /os/rt/src/chregistry.c | |
parent | e801a6adb4c12d337963398fa63867aae98f7630 (diff) | |
download | ChibiOS-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.c | 2 |
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
|