diff --git a/src/ripple/protocol/Book.h b/src/ripple/protocol/Book.h index fd3093d9877..609989062c0 100644 --- a/src/ripple/protocol/Book.h +++ b/src/ripple/protocol/Book.h @@ -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; }