[memheap] Fix 64 bit potential risk

This commit is contained in:
tangyuxin
2022-01-01 19:13:13 +08:00
committed by Bernard Xiong
parent 85441c0dc4
commit 09f439bcc2
5 changed files with 43 additions and 37 deletions

View File

@@ -927,9 +927,9 @@ struct rt_memheap
void *start_addr; /**< pool start address and size */
rt_uint32_t pool_size; /**< pool size */
rt_uint32_t available_size; /**< available size */
rt_uint32_t max_used_size; /**< maximum allocated size */
rt_size_t pool_size; /**< pool size */
rt_size_t available_size; /**< available size */
rt_size_t max_used_size; /**< maximum allocated size */
struct rt_memheap_item *block_list; /**< used block list */