* [U-Boot] [PATCH 3/4] Fix a possible overflow case detected by gcc 4.3.2
@ 2009-04-01 23:54 Jerry Van Baren
0 siblings, 0 replies; only message in thread
From: Jerry Van Baren @ 2009-04-01 23:54 UTC (permalink / raw)
To: u-boot
.../dtc/libfdt/fdt_sw.c: In function 'fdt_end_node':
.../dtc/libfdt/fdt_sw.c:81: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
---
libfdt/fdt_sw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libfdt/fdt_sw.c b/libfdt/fdt_sw.c
index 2380b27..55ebebf 100644
--- a/libfdt/fdt_sw.c
+++ b/libfdt/fdt_sw.c
@@ -70,7 +70,7 @@ static int _fdt_sw_check_header(void *fdt)
return err; \
}
-static void *_fdt_grab_space(void *fdt, int len)
+static void *_fdt_grab_space(void *fdt, size_t len)
{
int offset = fdt_size_dt_struct(fdt);
int spaceleft;
--
1.5.6.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-01 23:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01 23:54 [U-Boot] [PATCH 3/4] Fix a possible overflow case detected by gcc 4.3.2 Jerry Van Baren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox