Fix the value width issue under 32/64 bit arch.

This commit is contained in:
Bernard Xiong
2018-12-13 14:54:26 +08:00
parent dcf7bce2cc
commit 1f37de29c4
6 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -34,7 +34,7 @@
#define RT_MEMHEAP_MINIALLOC 12
#define RT_MEMHEAP_SIZE RT_ALIGN(sizeof(struct rt_memheap_item), RT_ALIGN_SIZE)
#define MEMITEM_SIZE(item) ((rt_uint32_t)item->next - (rt_uint32_t)item - RT_MEMHEAP_SIZE)
#define MEMITEM_SIZE(item) ((rt_ubase_t)item->next - (rt_ubase_t)item - RT_MEMHEAP_SIZE)
/*
* The initialized memory pool will be: