[kernel] fixed signed/unsigned mismatch warning

This commit is contained in:
liang yongxiang 2018-04-09 11:57:44 +08:00
parent ac6302db30
commit 8dc8382277
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ rt_err_t rt_mp_init(struct rt_mempool *mp,
rt_size_t block_size) rt_size_t block_size)
{ {
rt_uint8_t *block_ptr; rt_uint8_t *block_ptr;
register rt_base_t offset; register rt_size_t offset;
/* parameter check */ /* parameter check */
RT_ASSERT(mp != RT_NULL); RT_ASSERT(mp != RT_NULL);
@ -200,7 +200,7 @@ rt_mp_t rt_mp_create(const char *name,
{ {
rt_uint8_t *block_ptr; rt_uint8_t *block_ptr;
struct rt_mempool *mp; struct rt_mempool *mp;
register rt_base_t offset; register rt_size_t offset;
RT_DEBUG_NOT_IN_INTERRUPT; RT_DEBUG_NOT_IN_INTERRUPT;