mirror of https://github.com/rusefi/ChibiOS.git
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:
parent
a947a1d5ae
commit
3626cfdd1b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue