diff options
| author | Bernard Xiong <[email protected]> | 2018-12-13 14:54:26 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-12-13 14:54:26 +0800 |
| commit | 1f37de29c4ee4dac488aa9c4f8f0990263f94c1a (patch) | |
| tree | d4490ad25d6b751e8fcfbb30af40141e387946f9 /src | |
| parent | dcf7bce2cc5d04bcb006b84a27a5498f42268184 (diff) | |
Fix the value width issue under 32/64 bit arch.
Diffstat (limited to 'src')
| -rw-r--r-- | src/memheap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memheap.c b/src/memheap.c index eb5d710029..aef56e1a74 100644 --- a/src/memheap.c +++ b/src/memheap.c @@ -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: |
