From ae867a287c8e0c57a109eef0775e6ff30e56a22c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 21 Feb 2000 12:01:26 +0000 Subject: This lot mainly cleans up `comparison between signed and unsigned' gcc warnings. One usused var, and a macro parenthesis fix too. Also check input sections are elf when doing gc in elflink.h. --- bfd/libbfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bfd/libbfd.c') diff --git a/bfd/libbfd.c b/bfd/libbfd.c index fb833f60b69..881af73239f 100644 --- a/bfd/libbfd.c +++ b/bfd/libbfd.c @@ -274,7 +274,7 @@ bfd_read (ptr, size, nitems, abfd) get = size * nitems; if (abfd->where + get > bim->size) { - if (bim->size < abfd->where) + if (bim->size < (bfd_size_type) abfd->where) get = 0; else get = bim->size - abfd->where; @@ -689,7 +689,7 @@ bfd_seek (abfd, position, direction) else abfd->where += position; - if (abfd->where > bim->size) + if ((bfd_size_type) abfd->where > bim->size) { abfd->where = bim->size; bfd_set_error (bfd_error_file_truncated); -- cgit v1.2.1