diff options
| author | Yonggang Luo <[email protected]> | 2025-09-22 01:08:13 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-09-24 18:12:36 +0800 |
| commit | 4da1ef0f3d032d165e6374a3e7f8f6c8b3589e3f (patch) | |
| tree | e19a866405fb94548a1a4a295cd8da8001e19658 | |
| parent | 0e9e50fe6d4f1ed1775ebea5a0b39b7024b48c16 (diff) | |
cast to (rt_tick_t)RT_WAITING_FOREVER for explicit
| -rw-r--r-- | components/drivers/ipc/condvar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/ipc/condvar.c b/components/drivers/ipc/condvar.c index 1eb42dc9ad..d502785e7f 100644 --- a/components/drivers/ipc/condvar.c +++ b/components/drivers/ipc/condvar.c @@ -47,7 +47,7 @@ static int _waitq_inqueue(rt_wqueue_t *queue, struct rt_wqueue_node *node, if (ret == RT_EOK) { rt_wqueue_add(queue, node); - if (timeout != RT_WAITING_FOREVER) + if (timeout != (rt_tick_t)RT_WAITING_FOREVER) { rt_timer_control(timer, RT_TIMER_CTRL_SET_TIME, &timeout); |
