diff options
| -rw-r--r-- | src/oat/runtime/mips/context_mips.cc | 2 | ||||
| -rw-r--r-- | src/oat/runtime/mips/context_mips.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/oat/runtime/mips/context_mips.cc b/src/oat/runtime/mips/context_mips.cc index 5f97f6a8d3..cbd63d806e 100644 --- a/src/oat/runtime/mips/context_mips.cc +++ b/src/oat/runtime/mips/context_mips.cc @@ -69,7 +69,7 @@ void MipsContext::FillCalleeSaves(const StackVisitor& fr) { } void MipsContext::SetGPR(uint32_t reg, uintptr_t value) { - CHECK_LT(reg, kNumberOfCoreRegisters); + CHECK_LT(reg, static_cast<uint32_t>(kNumberOfCoreRegisters)); CHECK_NE(gprs_[reg], &gZero); // Can't overwrite this static value since they are never reset. CHECK(gprs_[reg] != NULL); *gprs_[reg] = value; diff --git a/src/oat/runtime/mips/context_mips.h b/src/oat/runtime/mips/context_mips.h index 76a5957680..fc8ef9655f 100644 --- a/src/oat/runtime/mips/context_mips.h +++ b/src/oat/runtime/mips/context_mips.h @@ -43,7 +43,7 @@ class MipsContext : public Context { } virtual uintptr_t GetGPR(uint32_t reg) { - CHECK_LT(reg, kNumberOfCoreRegisters); + CHECK_LT(reg, static_cast<uint32_t>(kNumberOfCoreRegisters)); return *gprs_[reg]; } |