aboutsummaryrefslogtreecommitdiffstats
path: root/src/chqueues.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chqueues.c')
-rw-r--r--src/chqueues.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chqueues.c b/src/chqueues.c
index 2cccc3120..225492e60 100644
--- a/src/chqueues.c
+++ b/src/chqueues.c
@@ -212,7 +212,7 @@ void chOQReset(Queue *qp) {
chSysLock();
qp->q_rdptr = qp->q_wrptr = qp->q_buffer;
- chSemResetI(&qp->q_sem, (t_semcnt)(qp->q_top - qp->q_buffer));
+ chSemResetI(&qp->q_sem, (t_cnt)(qp->q_top - qp->q_buffer));
chSysUnlock();
}