aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/rt/include/chvt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h
index 93c665f63..d44d0b91b 100644
--- a/os/rt/include/chvt.h
+++ b/os/rt/include/chvt.h
@@ -285,7 +285,7 @@ static inline bool chVTIsTimeWithinX(systime_t time,
systime_t start,
systime_t end) {
- return (bool)((time - start) < (end - start));
+ return (bool)((systime_t)(time - start) < (systime_t)(end - start));
}
/**