summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
authortangyuxin <[email protected]>2022-01-01 19:13:13 +0800
committerBernard Xiong <[email protected]>2022-01-08 15:50:14 +0800
commit09f439bcc2fbe574dd619fcb97b617912dde63a6 (patch)
treecb3ca4e0fe7787375dc59afccaea7cf5d7ed87ec /include/rtdef.h
parent85441c0dc405c4b40dbabbdfad8ced838cd97e25 (diff)
[memheap] Fix 64 bit potential risk
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index a018ceb21d..6d47d18a2c 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -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 */