diff --git a/src/literal_number.cpp b/src/literal_number.cpp index a1c3103..f204dd3 100644 --- a/src/literal_number.cpp +++ b/src/literal_number.cpp @@ -29,7 +29,7 @@ u16 LiteralNumber::GetWordCount() const { bool LiteralNumber::operator==(const Operand& other) const { if (operand_type == other.GetType()) { - const auto& o{dynamic_cast(other)}; + const auto& o{static_cast(other)}; return o.type == type && o.raw == raw; } return false;