Skip to content

Commit

Permalink
Fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Jul 14, 2024
1 parent 3831969 commit 6f664e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/xrpl/protocol/STEitherAmount.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ operator==(STEitherAmount const& lhs, STEitherAmount const& rhs)
inline bool
operator!=(STEitherAmount const& lhs, STEitherAmount const& rhs)
{
return !(lhs == rhs);
return !operator==(lhs, rhs);
}

template <ValidAssetType T1, ValidAssetType T2>
Expand Down
16 changes: 8 additions & 8 deletions include/xrpl/protocol/STMPTAmount.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,23 @@ class STMPTAmount final : public MPTAmount,
int
signum() const noexcept;

friend bool
operator==(STMPTAmount const& lhs, STMPTAmount const& rhs);
bool
operator==(STMPTAmount const& rhs);

friend bool
operator!=(STMPTAmount const& lhs, STMPTAmount const& rhs);
bool
operator!=(STMPTAmount const& rhs);
};

inline bool
operator==(STMPTAmount const& lhs, STMPTAmount const& rhs)
STMPTAmount::operator==(STMPTAmount const& rhs)
{
return lhs.value_ == rhs.value_ && lhs.issue_ == rhs.issue_;
return value_ == rhs.value_ && issue_ == rhs.issue_;
}

inline bool
operator!=(STMPTAmount const& lhs, STMPTAmount const& rhs)
STMPTAmount::operator!=(STMPTAmount const& rhs)
{
return !(lhs == rhs);
return !operator==(rhs);
}

STMPTAmount
Expand Down

0 comments on commit 6f664e4

Please sign in to comment.