fix 32bit & 64bit value to pointer interconvert.

This commit is contained in:
geniusgogo
2022-01-28 11:35:10 +08:00
committed by Bernard Xiong
parent 039e2ff530
commit 658b2c1027
9 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -22,12 +22,12 @@
static void memheap_test(void)
{
struct rt_memheap heap1;
rt_uint32_t ptr_start;
rt_ubase_t ptr_start;
void *ptr[SLICE_NUM];
int i, cnt = 0;
/* init heap */
ptr_start = (rt_uint32_t)rt_malloc_align(HEAP_SIZE, HEAP_ALIGN);
ptr_start = (rt_ubase_t)rt_malloc_align(HEAP_SIZE, HEAP_ALIGN);
if (ptr_start == RT_NULL)
{
rt_kprintf("totle size too big,can not malloc memory!");