mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
Silencing two signed/unsigned mismatch warnings; NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238419 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
331b719b2b
commit
b97d261a17
@ -73,7 +73,8 @@ struct PatchLocation {
|
||||
|
||||
void set(uint64_t New) const {
|
||||
assert(Die);
|
||||
assert(Index < std::distance(Die->begin_values(), Die->end_values()));
|
||||
assert((signed)Index <
|
||||
std::distance(Die->begin_values(), Die->end_values()));
|
||||
const auto &Old = Die->begin_values()[Index];
|
||||
assert(Old.getType() == DIEValue::isInteger);
|
||||
Die->setValue(Index,
|
||||
@ -82,7 +83,8 @@ struct PatchLocation {
|
||||
|
||||
uint64_t get() const {
|
||||
assert(Die);
|
||||
assert(Index < std::distance(Die->begin_values(), Die->end_values()));
|
||||
assert((signed)Index <
|
||||
std::distance(Die->begin_values(), Die->end_values()));
|
||||
assert(Die->begin_values()[Index].getType() == DIEValue::isInteger);
|
||||
return Die->begin_values()[Index].getDIEInteger().getValue();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user