diff options
| author | Grissiom <[email protected]> | 2014-10-14 16:00:42 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2014-10-14 16:00:42 +0800 |
| commit | 8615e2c8e5a0964b871282582127e4a6aad763a5 (patch) | |
| tree | 299d7874e9e2b99c7f571c9bf448207247eb330f | |
| parent | a4bb77d09740df6838fcf5a818da3ad0975a4293 (diff) | |
kernel/timer: change row_lvl to unsigned
Use signed int as array index is unsecure.
| -rw-r--r-- | src/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timer.c b/src/timer.c index f71e40fcd6..ba2801530d 100644 --- a/src/timer.c +++ b/src/timer.c @@ -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]; |
