diff options
Diffstat (limited to 'os/oslib/include')
-rw-r--r-- | os/oslib/include/chobjfifos.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/oslib/include/chobjfifos.h b/os/oslib/include/chobjfifos.h index c75937eb7..a50ed121f 100644 --- a/os/oslib/include/chobjfifos.h +++ b/os/oslib/include/chobjfifos.h @@ -129,7 +129,7 @@ static inline void chFifoObjectInitAligned(objects_fifo_t *ofp, size_t objsize, size_t objn, unsigned objalign,
void *objbuf, msg_t *msgbuf) {
- chDbgCheck((objsize >= objalign) && (objsize % objalign == 0U));
+ chDbgCheck((objsize >= objalign) && ((objsize % objalign) == 0U));
chGuardedPoolObjectInitAligned(&ofp->free, objsize, objalign);
chGuardedPoolLoadArray(&ofp->free, objbuf, objn);
|