Convert a few size_t I missed in the previous commit. Sorry about that.

llvm-svn: 252745
This commit is contained in:
Rafael Espindola 2015-11-11 15:55:00 +00:00
parent a245e40a55
commit 1fe2d1e6d4

View File

@ -170,7 +170,7 @@ MergeInputSection<ELFT>::getOffset(uintX_t Offset) {
// Find the element this offset points to.
auto I = std::upper_bound(
Offsets.begin(), Offsets.end(), Offset,
[](const uintX_t &A, const std::pair<uintX_t, size_t> &B) {
[](const uintX_t &A, const std::pair<uintX_t, uintX_t> &B) {
return A < B.first;
});
uintX_t End = I == Offsets.end() ? Data.size() : I->first;
@ -180,7 +180,7 @@ MergeInputSection<ELFT>::getOffset(uintX_t Offset) {
// Compute the Addend and if the Base is cached, return.
uintX_t Addend = Offset - Start;
uintX_t &Base = I->second;
if (Base != size_t(-1))
if (Base != uintX_t(-1))
return Base + Addend;
// Map the base to the offset in the output section and cashe it.