撤销有符号比较,仍应使用无符号比较
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…
Reference in New Issue