diff options
author | Emil Medve <Emilian.Medve@Freescale.com> | 2009-02-23 19:43:36 +0300 |
---|---|---|
committer | Gerald Van Baren <vanbaren@cideas.com> | 2009-04-02 03:29:39 +0400 |
commit | 13d93f38e86818739317b0206d597265cf9e675e (patch) | |
tree | 7f136fef0434a7d1deb9f83df9a1c2fb901f97d8 /libfdt | |
parent | a22d9cfbb5bcfb3dc6ffd64d391b568e8a0ce383 (diff) | |
download | u-boot-13d93f38e86818739317b0206d597265cf9e675e.tar.xz |
Fix a possible overflow case detected by gcc 4.3.2
.../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>
Diffstat (limited to 'libfdt')
-rw-r--r-- | 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 2380b27502..55ebebf1eb 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; |