From d9578ad0dbbb3cad59073de52cf258497acb5778 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 2 Jun 2010 17:27:31 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1990 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/src/chqueues.c | 2 +- readme.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/os/kernel/src/chqueues.c b/os/kernel/src/chqueues.c index acc7494c2..651b79f4e 100644 --- a/os/kernel/src/chqueues.c +++ b/os/kernel/src/chqueues.c @@ -215,7 +215,7 @@ void chOQInit(OutputQueue *oqp, uint8_t *bp, size_t size, qnotify_t onfy) { oqp->q_buffer = oqp->q_rdptr = oqp->q_wrptr = bp; oqp->q_top = bp + size; oqp->q_notify = onfy; - chSemInit(&oqp->q_sem, size); + chSemInit(&oqp->q_sem, (cnt_t)size); } /** diff --git a/readme.txt b/readme.txt index fea5d6ad8..e32988ae3 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 explicit casts in chevents.h and chqueues.h in order to silence - some warnings on a specific compiler. +- Added explicit casts in chevents.h, chqueues.h, chqueues.c 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