Skip to content

Commit 88de4f7

Browse files
authored
[kservice] Fix 64 bit compilation warning (#5649)
1 parent 8b58577 commit 88de4f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/kservice.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,8 +1383,8 @@ rt_inline void _heap_unlock(rt_base_t level)
13831383

13841384
#if defined(RT_USING_SMALL_MEM_AS_HEAP)
13851385
static rt_smem_t system_heap;
1386-
rt_inline void _smem_info(rt_uint32_t *total,
1387-
rt_uint32_t *used, rt_uint32_t *max_used)
1386+
rt_inline void _smem_info(rt_size_t *total,
1387+
rt_size_t *used, rt_size_t *max_used)
13881388
{
13891389
if (total)
13901390
*total = system_heap->total;
@@ -1420,8 +1420,8 @@ void *_memheap_realloc(struct rt_memheap *heap, void *rmem, rt_size_t newsize);
14201420
rt_memheap_info(&system_heap, _total, _used, _max)
14211421
#elif defined(RT_USING_SLAB_AS_HEAP)
14221422
static rt_slab_t system_heap;
1423-
rt_inline void _slab_info(rt_uint32_t *total,
1424-
rt_uint32_t *used, rt_uint32_t *max_used)
1423+
rt_inline void _slab_info(rt_size_t *total,
1424+
rt_size_t *used, rt_size_t *max_used)
14251425
{
14261426
if (total)
14271427
*total = system_heap->total;

0 commit comments

Comments
 (0)