diff options
author | Alan Modra <amodra@bigpond.net.au> | 2000-02-21 12:01:26 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2000-02-21 12:01:26 +0000 |
commit | ae867a287c8e0c57a109eef0775e6ff30e56a22c (patch) | |
tree | 3c9ea9e0e46d3e486dc8256878c092a807a868c8 /opcodes/dis-buf.c | |
parent | fac575e326683066a556b24f1a1d8afb50c5d332 (diff) | |
download | gdb-ae867a287c8e0c57a109eef0775e6ff30e56a22c.tar.gz |
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 'opcodes/dis-buf.c')
-rw-r--r-- | opcodes/dis-buf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/opcodes/dis-buf.c b/opcodes/dis-buf.c index 65b1edb3e66..b828206d43f 100644 --- a/opcodes/dis-buf.c +++ b/opcodes/dis-buf.c @@ -26,13 +26,13 @@ int buffer_read_memory (memaddr, myaddr, length, info) bfd_vma memaddr; bfd_byte *myaddr; - int length; + unsigned int length; struct disassemble_info *info; { - int opb = info->octets_per_byte; - int end_addr_offset = length / opb; - int max_addr_offset = info->buffer_length / opb; - int octets = (memaddr - info->buffer_vma) * opb; + unsigned int opb = info->octets_per_byte; + unsigned int end_addr_offset = length / opb; + unsigned int max_addr_offset = info->buffer_length / opb; + unsigned int octets = (memaddr - info->buffer_vma) * opb; if (memaddr < info->buffer_vma || memaddr - info->buffer_vma + end_addr_offset > max_addr_offset) |