Skip to content

Commit

Permalink
Simplify the spaceship operator for Book
Browse files Browse the repository at this point in the history
  • Loading branch information
drlongle committed Feb 17, 2023
1 parent de2ba6a commit e873b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ripple/protocol/Book.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ operator==(Book const& lhs, Book const& rhs)
[[nodiscard]] inline constexpr std::weak_ordering
operator<=>(Book const& lhs, Book const& rhs)
{
if (auto const c{lhs.in <=> rhs.in}; c != std::weak_ordering::equivalent)
if (auto const c{lhs.in <=> rhs.in}; c != 0)
return c;
return lhs.out <=> rhs.out;
}
Expand Down

0 comments on commit e873b55

Please sign in to comment.