mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 08:43:31 +08:00
撤销有符号比较,仍应使用无符号比较
This commit is contained in:
parent
302f179c85
commit
5ce889ea82
@ -598,7 +598,7 @@ rt_err_t rt_thread_delay_until(rt_tick_t *tick, rt_tick_t inc_tick)
|
||||
level = rt_hw_interrupt_disable();
|
||||
|
||||
cur_tick = rt_tick_get();
|
||||
if ((rt_int32_t)(cur_tick - *tick) < (rt_int32_t)inc_tick)
|
||||
if (cur_tick - *tick < inc_tick)
|
||||
{
|
||||
rt_tick_t left_tick;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user