From fbcb70d7391b35359be007d2013282227b720752 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 11 Oct 2015 09:35:53 +0000 Subject: [PATCH] Fixed bug #646. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8357 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chvt.h | 2 +- readme.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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).