[rtems commit] bsps: Fix integer types in bsp_fdt_copy()
Sebastian Huber
sebh at rtems.org
Tue Aug 22 14:53:39 UTC 2017
Module: rtems
Branch: master
Commit: 241d2f2ff13346f3b219d8ac9808f846f0fdd55d
Changeset: http://git.rtems.org/rtems/commit/?id=241d2f2ff13346f3b219d8ac9808f846f0fdd55d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Aug 2 14:13:06 2017 +0200
bsps: Fix integer types in bsp_fdt_copy()
Update #3082.
---
c/src/lib/libbsp/shared/src/bsp-fdt.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/c/src/lib/libbsp/shared/src/bsp-fdt.c b/c/src/lib/libbsp/shared/src/bsp-fdt.c
index f49eec2..7e8d892 100644
--- a/c/src/lib/libbsp/shared/src/bsp-fdt.c
+++ b/c/src/lib/libbsp/shared/src/bsp-fdt.c
@@ -47,9 +47,9 @@ void bsp_fdt_copy(const void *src)
#endif
if (s != d) {
- uint32_t m = MIN(sizeof(bsp_fdt_blob), fdt_totalsize(src));
- uint32_t n = (m + sizeof(*d) - 1) / sizeof(*d);
- uint32_t i;
+ size_t m = MIN(sizeof(bsp_fdt_blob), fdt_totalsize(src));
+ size_t n = (m + sizeof(*d) - 1) / sizeof(*d);
+ size_t i;
for (i = 0; i < n; ++i) {
d[i] = s[i];
More information about the vc
mailing list