literal_number: Use static_cast instead of dynamic_cast
This commit is contained in:
parent
6967a2c124
commit
ef47087d88
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ u16 LiteralNumber::GetWordCount() const {
|
||||||
|
|
||||||
bool LiteralNumber::operator==(const Operand& other) const {
|
bool LiteralNumber::operator==(const Operand& other) const {
|
||||||
if (operand_type == other.GetType()) {
|
if (operand_type == other.GetType()) {
|
||||||
const auto& o{dynamic_cast<const LiteralNumber&>(other)};
|
const auto& o{static_cast<const LiteralNumber&>(other)};
|
||||||
return o.type == type && o.raw == raw;
|
return o.type == type && o.raw == raw;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue