summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authordongly <[email protected]>2022-08-03 00:09:49 +0800
committerGitHub <[email protected]>2022-08-02 12:09:49 -0400
commit3363586cbbf507937a6be74397f4ffd5c6966fe5 (patch)
tree8eaac87aa11b72c93a96b128d5a15134f097e95d /libcpu
parent7882e42c614c24a1750cba4a3e2936b6bf68f42f (diff)
Fix some compilation warning (#5744)
* Fix some compilation warning * 补充修正一些数据类型的使用错误 Co-authored-by: Meco Man <[email protected]>
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/arm/common/showmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/arm/common/showmem.c b/libcpu/arm/common/showmem.c
index 25b18d7fcf..2ece137a40 100644
--- a/libcpu/arm/common/showmem.c
+++ b/libcpu/arm/common/showmem.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
+ * Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -12,7 +12,7 @@
void rt_hw_show_memory(rt_uint32_t addr, rt_uint32_t size)
{
- int i = 0, j = 0;
+ unsigned int i = 0, j = 0;
RT_ASSERT(addr);