diff options
author | Alan Modra <amodra@gmail.com> | 2000-02-21 12:01:27 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-02-21 12:01:27 +0000 |
commit | f6af82bd4470673eef9562d4ed3a2717c1d749ab (patch) | |
tree | 049fedd33d8bf74259017f441ef55ee8920b9cc2 /bfd/libbfd.c | |
parent | 2403ff6fdb9d23ee79863d2b2aacac46a2d8283d (diff) | |
download | gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.zip gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.gz gdb-f6af82bd4470673eef9562d4ed3a2717c1d749ab.tar.bz2 |
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.
Diffstat (limited to 'bfd/libbfd.c')
-rw-r--r-- | bfd/libbfd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/libbfd.c b/bfd/libbfd.c index fb833f6..881af73 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); |