From 8dc83822773081c35d546b7f094b542c9f4b6150 Mon Sep 17 00:00:00 2001 From: liang yongxiang Date: Mon, 9 Apr 2018 11:57:44 +0800 Subject: [PATCH] [kernel] fixed signed/unsigned mismatch warning --- src/mempool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mempool.c b/src/mempool.c index 3de2d5fd7f..5d80d66533 100644 --- a/src/mempool.c +++ b/src/mempool.c @@ -95,7 +95,7 @@ rt_err_t rt_mp_init(struct rt_mempool *mp, rt_size_t block_size) { rt_uint8_t *block_ptr; - register rt_base_t offset; + register rt_size_t offset; /* parameter check */ RT_ASSERT(mp != RT_NULL); @@ -200,7 +200,7 @@ rt_mp_t rt_mp_create(const char *name, { rt_uint8_t *block_ptr; struct rt_mempool *mp; - register rt_base_t offset; + register rt_size_t offset; RT_DEBUG_NOT_IN_INTERRUPT;