Skip to content

Commit 4da1ef0

Browse files
lygstateRbb666
authored andcommitted
cast to (rt_tick_t)RT_WAITING_FOREVER for explicit
1 parent 0e9e50f commit 4da1ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/drivers/ipc/condvar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int _waitq_inqueue(rt_wqueue_t *queue, struct rt_wqueue_node *node,
4747
if (ret == RT_EOK)
4848
{
4949
rt_wqueue_add(queue, node);
50-
if (timeout != RT_WAITING_FOREVER)
50+
if (timeout != (rt_tick_t)RT_WAITING_FOREVER)
5151
{
5252
rt_timer_control(timer, RT_TIMER_CTRL_SET_TIME, &timeout);
5353

0 commit comments

Comments
 (0)