diff options
Diffstat (limited to 'os/nil/include/nil.h')
-rw-r--r-- | os/nil/include/nil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/nil/include/nil.h b/os/nil/include/nil.h index 161c79a6d..6c3084153 100644 --- a/os/nil/include/nil.h +++ b/os/nil/include/nil.h @@ -735,7 +735,7 @@ typedef struct { * @xclass
*/
#define chVTTimeElapsedSinceX(start) \
- ((systime_t)(chVTGetSystemTimeX() - start))
+ ((systime_t)(chVTGetSystemTimeX() - (start)))
/**
* @brief Checks if the specified time is within the specified time window.
@@ -752,7 +752,7 @@ typedef struct { * @xclass
*/
#define chVTIsTimeWithinX(time, start, end) \
- ((bool)((time) - (start) < (end) - (start)))
+ ((bool)((systime_t)((time) - (start)) < (systime_t)((end) - (start))))
/**
* @brief Condition assertion.
|