[memheap] Fix 64 bit potential risk

This commit is contained in:
tangyuxin
2022-01-08 15:50:14 +08:00
committed by Bernard Xiong
parent 85441c0dc4
commit 09f439bcc2
5 changed files with 43 additions and 37 deletions
+1 -1
View File
@@ -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);