mirror of
https://github.com/yuzu-emu/sirit
synced 2024-11-26 01:08:07 +00:00
Drop usage of dynamic_cast in favour of static_cast
This commit is contained in:
parent
cff0a41416
commit
53d572ae7d
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue