From 47c5c35de6bc548dff7577e3dae38d183b719232 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 29 Feb 2008 10:17:16 +0000 Subject: src/ 2008-02-29 Roland McGrath * readelf.c (print_attributes): Add a cast. * elflint.c (check_attributes): Likewise. * unaligned.h (add_8ubyte_unaligned): Cast PTR argument for parity with [UNALIGNED_ACCESS_CLASS == BYTE_ORDER] definition. (add_4ubyte_unaligned, add_2ubyte_unaligned): Likewise. --- src/elflint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/elflint.c') diff --git a/src/elflint.c b/src/elflint.c index 9a1a7179..54aa1114 100644 --- a/src/elflint.c +++ b/src/elflint.c @@ -3213,7 +3213,7 @@ section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"), if (MY_ELFDATA != ehdr->e_ident[EI_DATA]) CONVERT (subsection_len); - if (p - chunk < subsection_len) + if (p - chunk < (ptrdiff_t) subsection_len) { ERROR (gettext ("\ section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"), -- cgit v1.2.3