kernel/timer: change row_lvl to unsigned

Use signed int as array index is unsecure.
This commit is contained in:
Grissiom 2014-10-14 16:00:42 +08:00
parent a4bb77d097
commit 8615e2c8e5
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ RTM_EXPORT(rt_timer_delete);
*/
rt_err_t rt_timer_start(rt_timer_t timer)
{
int row_lvl;
unsigned int row_lvl;
rt_list_t *timer_list;
register rt_base_t level;
rt_list_t *row_head[RT_TIMER_SKIP_LIST_LEVEL];