[kernel] fixed signed/unsigned mismatch warning
This commit is contained in:
parent
ac6302db30
commit
8dc8382277
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue