撤销有符号比较,仍应使用无符号比较

This commit is contained in:
liruncong 2021-03-04 19:33:28 +08:00
parent 302f179c85
commit 5ce889ea82
1 changed files with 1 additions and 1 deletions

View File

@ -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;