diff options
author | Alan Modra <amodra@gmail.com> | 2000-04-13 01:08:05 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-04-13 01:08:05 +0000 |
commit | fc633e5b9780011f74f2c23837968e43e262a239 (patch) | |
tree | 5ccc69c4b1e69941727cee9ebe0a9a7fcd31de32 /bfd/elf32-mips.c | |
parent | 3db10f32e0e0cbf960edcdf6ed42ccb3bc7c4952 (diff) | |
download | gdb-fc633e5b9780011f74f2c23837968e43e262a239.zip gdb-fc633e5b9780011f74f2c23837968e43e262a239.tar.gz gdb-fc633e5b9780011f74f2c23837968e43e262a239.tar.bz2 |
Remove U suffix from constants for K&R compilers.
Fix a couple of 64 bit nits.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r-- | bfd/elf32-mips.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index d8471bf..c1506e1 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -6739,8 +6739,8 @@ _bfd_mips_elf_relocate_section (output_bfd, info, input_bfd, input_section, bfd_vma low_bits; bfd_vma high_bits; - if (addend & 0x80000000u) - sign_bits = 0xffffffffu; + if (addend & ((bfd_vma) 1 << 31)) + sign_bits = ((bfd_vma) 1 << 32) - 1; else sign_bits = 0; @@ -6859,8 +6859,8 @@ _bfd_mips_elf_relocate_section (output_bfd, info, input_bfd, input_section, bfd_vma low_bits; bfd_vma high_bits; - if (value & 0x80000000u) - sign_bits = 0xffffffffu; + if (value & ((bfd_vma) 1 << 31)) + sign_bits = ((bfd_vma) 1 << 32) - 1; else sign_bits = 0; |