arm_types: new_reg >= 0 is always true since new_reg is unsigned
This commit is contained in:
parent
7a01dba3c4
commit
a96704eb0f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue