Skip to content

Commit

Permalink
fix: correct immediate::operator==.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashigeru committed Jul 4, 2024
1 parent e999f10 commit 7915361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/takatori/scalar/immediate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ immediate& immediate::type(std::shared_ptr<type::data const> type) noexcept {

bool operator==(immediate const& a, immediate const& b) noexcept {
return a.optional_value() == b.optional_value()
&& b.optional_type() == b.optional_type();
&& a.optional_type() == b.optional_type();
}

bool operator!=(immediate const& a, immediate const& b) noexcept {
Expand Down

0 comments on commit 7915361

Please sign in to comment.