arm_types: new_reg >= 0 is always true since new_reg is unsigned

This commit is contained in:
MerryMage 2016-08-23 20:11:41 +01:00
parent 7a01dba3c4
commit a96704eb0f

View file

@ -164,7 +164,7 @@ inline Reg operator+(Reg reg, size_t number) {
ASSERT(reg != Reg::INVALID_REG); ASSERT(reg != Reg::INVALID_REG);
size_t new_reg = static_cast<size_t>(reg) + number; size_t new_reg = static_cast<size_t>(reg) + number;
ASSERT(new_reg >= 0 && new_reg <= 15); ASSERT(new_reg <= 15);
return static_cast<Reg>(new_reg); return static_cast<Reg>(new_reg);
} }