+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.
+
2008-06-17 Ian Lance Taylor <iant@google.com>
* output.h (Output_section::Input_section): Initialize p2align_ to
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);
}
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);
}
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);
}