diff options
-rw-r--r-- | os/kernel/include/chqueues.h | 8 | ||||
-rw-r--r-- | 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).
|