From 5f494ea0d5674ea0b84a3b29d7f367333eebdd4b Mon Sep 17 00:00:00 2001 From: Craig Silverstein Date: Wed, 18 Jun 2008 22:32:37 +0000 Subject: [PATCH] 2008-06-18 Craig Silverstein * powerpc.cc (Powerpc_relocate_functions::addr16_ha): cast constant 0xFFFF to type Valtype. (Powerpc_relocate_functions::rel16_ha): Likewise. --- gold/ChangeLog | 6 ++++++ gold/powerpc.cc | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index 82d1dbf264d..7b510f15310 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2008-06-18 Craig Silverstein + + * powerpc.cc (Powerpc_relocate_functions::addr16_ha): cast + constant 0xFFFF to type Valtype. + (Powerpc_relocate_functions::rel16_ha): Likewise. + 2008-06-17 Ian Lance Taylor * output.h (Output_section::Input_section): Initialize p2align_ to diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 1eb72697a28..4f44fee175a 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(0xffff); + reloc &= static_cast(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(0xffff); + reloc &= static_cast(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(0xffff); + reloc &= static_cast(0xffff); elfcpp::Swap<16, true>::writeval(wv, val | reloc); } -- 2.30.2