MISRA-related fixes.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11456 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2018-02-06 18:22:34 +00:00
parent a947a1d5ae
commit 3626cfdd1b
1 changed files with 2 additions and 0 deletions

View File

@ -472,7 +472,9 @@ static inline time_usecs_t chTimeI2US(sysinterval_t interval) {
static inline systime_t chTimeAddX(systime_t systime,
sysinterval_t interval) {
#if CH_CFG_ST_RESOLUTION != CH_CFG_INTERVALS_SIZE
chDbgCheck(interval <= (sysinterval_t)((systime_t)-1));
#endif
return systime + (systime_t)interval;
}