[ELF2] - fix of eh-frame-merge.s and eh-frame-merge.s tests fails for win32 configuration.
llvm-svn: 253043
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index 0896d04..ed21a51 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -192,7 +192,7 @@
EHInputSection<ELFT>::getOffset(uintX_t Offset) {
std::pair<uintX_t, uintX_t> *I = this->getRangeAndSize(Offset).first;
uintX_t Base = I->second;
- if (Base == size_t(-1))
+ if (Base == uintX_t(-1))
return -1; // Not in the output
uintX_t Addend = Offset - I->first;
@@ -234,7 +234,7 @@
template <class ELFT>
typename MergeInputSection<ELFT>::uintX_t
MergeInputSection<ELFT>::getOffset(uintX_t Offset) {
- std::pair<std::pair<uintX_t, uintX_t> *, size_t> T =
+ std::pair<std::pair<uintX_t, uintX_t> *, uintX_t> T =
this->getRangeAndSize(Offset);
std::pair<uintX_t, uintX_t> *I = T.first;
uintX_t End = T.second;