aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-10-11 09:35:53 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-10-11 09:35:53 +0000
commitfbcb70d7391b35359be007d2013282227b720752 (patch)
treeddf3f47495121886d7663c50ac34b08e9cd5e129
parentfed322ed3c650fa4d03c9bd920900f5652c5d856 (diff)
downloadChibiOS-fbcb70d7391b35359be007d2013282227b720752.tar.gz
ChibiOS-fbcb70d7391b35359be007d2013282227b720752.tar.bz2
ChibiOS-fbcb70d7391b35359be007d2013282227b720752.zip
Fixed bug #646.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8357 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/rt/include/chvt.h2
-rw-r--r--readme.txt2
2 files changed, 3 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));
}
/**
diff --git a/readme.txt b/readme.txt
index 6f16c60db..83723d0c1 100644
--- a/readme.txt
+++ b/readme.txt
@@ -119,6 +119,8 @@
- HAL: Fixed STM32F3xx HAL checking for non-existing macros (bug #648)
(backported to 3.0.3 and 2.6.10).
- HAL: Fixed error in STM32F030 EXT driver (bug #647)(backported to 3.0.3).
+- RT: Fixed problem with chVTIsTimeWithinX() (bug #646)(backported to
+ 3.0.3 and 2.6.10).
- VAR: Fixed _sbrk_r with incr == 0 should be valid (bug #645)(backported to
3.0.3 and 2.6.10).
- RT: Fixed issues in CMSIS RTOS interface (bug #644)(backported to 3.0.3).