mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
[memheap] Fix 64 bit potential risk
This commit is contained in:
@@ -71,7 +71,7 @@ MSH_CMD_EXPORT_ALIAS(cmd_ps, ps, List threads in the system.);
|
||||
#ifdef RT_USING_HEAP
|
||||
int cmd_free(int argc, char **argv)
|
||||
{
|
||||
rt_uint32_t total = 0, used = 0, max_used = 0;
|
||||
rt_size_t total = 0, used = 0, max_used = 0;
|
||||
|
||||
rt_memory_info(&total, &used, &max_used);
|
||||
rt_kprintf("total : %d\n", total);
|
||||
|
||||
Reference in New Issue
Block a user