mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
Convert a few size_t I missed in the previous commit. Sorry about that.
llvm-svn: 252745
This commit is contained in:
parent
a245e40a55
commit
1fe2d1e6d4
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user