From 3f81701c837ada65d9d5a90e29157dc818e14c08 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 2 Jun 2010 17:13:25 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1989 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/include/chqueues.h | 8 ++++---- readme.txt | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/os/kernel/include/chqueues.h b/os/kernel/include/chqueues.h index fed1248b5..3e4078461 100644 --- a/os/kernel/include/chqueues.h +++ b/os/kernel/include/chqueues.h @@ -98,10 +98,10 @@ typedef struct { typedef GenericQueue InputQueue; /** @brief Evaluates to @p TRUE if the specified Input Queue is empty.*/ -#define chIQIsEmpty(q) (chQSpace(q) <= 0) +#define chIQIsEmpty(q) ((bool_t)(chQSpace(q) <= 0)) /** @brief Evaluates to @p TRUE if the specified Input Queue is full.*/ -#define chIQIsFull(q) (chQSpace(q) >= chQSize(q)) +#define chIQIsFull(q) ((bool_t)(chQSpace(q) >= chQSize(q))) /** * @brief Input queue read. @@ -163,12 +163,12 @@ typedef GenericQueue OutputQueue; /** * @brief Evaluates to @p TRUE if the specified Output Queue is empty. */ -#define chOQIsEmpty(q) (chQSpace(q) >= chQSize(q)) +#define chOQIsEmpty(q) ((bool_t)(chQSpace(q) >= chQSize(q))) /** * @brief Evaluates to @p TRUE if the specified Output Queue is full. */ -#define chOQIsFull(q) (chQSpace(q) <= 0) +#define chOQIsFull(q) ((bool_t)(chQSpace(q) <= 0)) /** * @brief Output queue write. diff --git a/readme.txt b/readme.txt index e350134e3..fea5d6ad8 100644 --- a/readme.txt +++ b/readme.txt @@ -63,8 +63,8 @@ - OPT: Small size optimization in the semaphores subsystem. - OPT: Improvements in the STM8 port, the code is now smaller and generally faster, also saved few bytes of RAM. -- Added some explicit casts in chevents.h in order to silence two warnings on - a specific compiler. +- Added explicit casts in chevents.h and chqueues.h in order to silence + some warnings on a specific compiler. *** 1.5.8 *** - FIX: Fixed missing files from ST library zip file (bug 3006629). -- cgit v1.2.3