aboutsummaryrefslogtreecommitdiff
path: root/bfd/bout.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-01-19 18:23:21 +0000
committerIan Lance Taylor <ian@airs.com>1993-01-19 18:23:21 +0000
commitfa2b89f1032989451742a5a75bcdec34736f903a (patch)
tree5151dd5df772f938bbf3fb9d7b8733f770d6974b /bfd/bout.c
parentb6bef86226f54af747d927ec4a818e14e6e63ebe (diff)
downloadgdb-fa2b89f1032989451742a5a75bcdec34736f903a.zip
gdb-fa2b89f1032989451742a5a75bcdec34736f903a.tar.gz
gdb-fa2b89f1032989451742a5a75bcdec34736f903a.tar.bz2
Tue Jan 19 09:06:14 1993 Ian Lance Taylor (ian@cygnus.com)
* aoutx.h (swap_ext_reloc_in, swap_std_reloc_in), bout.c (b_out_slurp_reloc_table), coff-mips.c (ecoff_swap_reloc_in), coff-msym.c (ecoff_swap_sym_in, ecoff_swap_rndx_in, ecoff_swap_opt_in): Added casts to int to avoid muttering by MIPS compiler.
Diffstat (limited to 'bfd/bout.c')
-rw-r--r--bfd/bout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/bout.c b/bfd/bout.c
index a99bfde..25a6b25 100644
--- a/bfd/bout.c
+++ b/bfd/bout.c
@@ -522,11 +522,11 @@ b_out_slurp_reloc_table (abfd, asect, symbols)
cache_ptr->howto = 0;
if (abfd->xvec->header_byteorder_big_p)
{
- symnum = (raw[4] << 16) | (raw[5] << 8) | raw[6];
+ symnum = ((int) raw[4] << 16) | ((int) raw[5] << 8) | (int) raw[6];
}
else
{
- symnum = (raw[6] << 16) | (raw[5] << 8) | raw[4];
+ symnum = ((int) raw[6] << 16) | ((int) raw[5] << 8) | (int) raw[4];
}
if (raw[7] & extern_mask)