diff options
| author | geniusgogo <[email protected]> | 2022-01-27 17:23:47 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2022-01-28 11:35:10 +0800 |
| commit | 658b2c10277d6f5d35bff355f71fda88d7d9b22c (patch) | |
| tree | 5fd1e60b62af348851d00c6082c8d3e4c51378b2 /examples/utest/testcases/kernel | |
| parent | 039e2ff53076b2a8411d94dc88c7b6157c19098e (diff) | |
fix 32bit & 64bit value to pointer interconvert.
Diffstat (limited to 'examples/utest/testcases/kernel')
| -rw-r--r-- | examples/utest/testcases/kernel/memheap_tc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/utest/testcases/kernel/memheap_tc.c b/examples/utest/testcases/kernel/memheap_tc.c index ee52bdb185..fe81cd1472 100644 --- a/examples/utest/testcases/kernel/memheap_tc.c +++ b/examples/utest/testcases/kernel/memheap_tc.c @@ -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!"); |
