diff options
author | Craig Silverstein <csilvers@google.com> | 2008-06-18 22:32:37 +0000 |
---|---|---|
committer | Craig Silverstein <csilvers@google.com> | 2008-06-18 22:32:37 +0000 |
commit | 5f494ea0d5674ea0b84a3b29d7f367333eebdd4b (patch) | |
tree | 18baf711ef3df06fb3575f6868e03eaad8b22ebe /gold/powerpc.cc | |
parent | 59ddf1e7921981f6635426de22a0027096b4820c (diff) | |
download | gdb-5f494ea0d5674ea0b84a3b29d7f367333eebdd4b.zip gdb-5f494ea0d5674ea0b84a3b29d7f367333eebdd4b.tar.gz gdb-5f494ea0d5674ea0b84a3b29d7f367333eebdd4b.tar.bz2 |
2008-06-18 Craig Silverstein <csilvers@google.com>
* powerpc.cc (Powerpc_relocate_functions::addr16_ha): cast
constant 0xFFFF to type Valtype.
(Powerpc_relocate_functions::rel16_ha): Likewise.
Diffstat (limited to 'gold/powerpc.cc')
-rw-r--r-- | gold/powerpc.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 1eb7269..4f44fee 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -605,8 +605,8 @@ public: reloc += 0x10000; reloc >>= 16; - val &= ~0xffff; - reloc &= 0xffff; + val &= ~static_cast<Valtype>(0xffff); + reloc &= static_cast<Valtype>(0xffff); elfcpp::Swap<16, true>::writeval(wv, val | reloc); } @@ -628,8 +628,8 @@ public: reloc += 0x10000; reloc >>= 16; - val &= ~0xffff; - reloc &= 0xffff; + val &= ~static_cast<Valtype>(0xffff); + reloc &= static_cast<Valtype>(0xffff); elfcpp::Swap<16, true>::writeval(wv, val | reloc); } @@ -684,8 +684,8 @@ public: reloc += 0x10000; reloc >>= 16; - val &= ~0xffff; - reloc &= 0xffff; + val &= ~static_cast<Valtype>(0xffff); + reloc &= static_cast<Valtype>(0xffff); elfcpp::Swap<16, true>::writeval(wv, val | reloc); } |