mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-11-22 11:25:37 +01:00
Drop usage of dynamic_cast in favour of static_cast
This commit is contained in:
parent
cff0a41416
commit
53d572ae7d
@ -26,7 +26,7 @@ u16 LiteralString::GetWordCount() const {
|
||||
|
||||
bool LiteralString::operator==(const Operand& other) const {
|
||||
if (operand_type == other.GetType()) {
|
||||
return dynamic_cast<const LiteralString&>(other).string == string;
|
||||
return static_cast<const LiteralString&>(other).string == string;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ bool Op::operator==(const Operand& other) const {
|
||||
if (operand_type != other.GetType()) {
|
||||
return false;
|
||||
}
|
||||
const Op& op = dynamic_cast<const Op&>(other);
|
||||
const auto& op = static_cast<const Op&>(other);
|
||||
if (op.opcode == opcode && result_type == op.result_type &&
|
||||
operands.size() == op.operands.size()) {
|
||||
for (std::size_t i = 0; i < operands.size(); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user