diff --git a/include/mtl/fixed.hpp b/include/mtl/fixed.hpp index 96d7d83..a77aff5 100644 --- a/include/mtl/fixed.hpp +++ b/include/mtl/fixed.hpp @@ -171,22 +171,22 @@ public: /** * \brief Comparison operators */ - constexpr fixed operator==(fixed rhs) const noexcept { + constexpr bool operator==(fixed rhs) const noexcept { return x == rhs.x; } - constexpr fixed operator!=(fixed rhs) const noexcept { + constexpr bool operator!=(fixed rhs) const noexcept { return x != rhs.x; } - constexpr fixed operator>(fixed rhs) const noexcept { + constexpr bool operator>(fixed rhs) const noexcept { return x > rhs.x; } - constexpr fixed operator>=(fixed rhs) const noexcept { + constexpr bool operator>=(fixed rhs) const noexcept { return x >= rhs.x; } - constexpr fixed operator<(fixed rhs) const noexcept { + constexpr bool operator<(fixed rhs) const noexcept { return x < rhs.x; } - constexpr fixed operator<=(fixed rhs) const noexcept { + constexpr bool operator<=(fixed rhs) const noexcept { return x <= rhs.x; } };