Fix incorrect return type on fixed point comparison operators

This commit is contained in:
Myles Busig 2024-08-18 23:49:01 -07:00
parent e87f10301f
commit fe2d8cf42b

View File

@ -171,22 +171,22 @@ public:
/** /**
* \brief Comparison operators * \brief Comparison operators
*/ */
constexpr fixed operator==(fixed rhs) const noexcept { constexpr bool operator==(fixed rhs) const noexcept {
return x == rhs.x; return x == rhs.x;
} }
constexpr fixed operator!=(fixed rhs) const noexcept { constexpr bool operator!=(fixed rhs) const noexcept {
return x != rhs.x; return x != rhs.x;
} }
constexpr fixed operator>(fixed rhs) const noexcept { constexpr bool operator>(fixed rhs) const noexcept {
return x > rhs.x; return x > rhs.x;
} }
constexpr fixed operator>=(fixed rhs) const noexcept { constexpr bool operator>=(fixed rhs) const noexcept {
return x >= rhs.x; return x >= rhs.x;
} }
constexpr fixed operator<(fixed rhs) const noexcept { constexpr bool operator<(fixed rhs) const noexcept {
return x < rhs.x; return x < rhs.x;
} }
constexpr fixed operator<=(fixed rhs) const noexcept { constexpr bool operator<=(fixed rhs) const noexcept {
return x <= rhs.x; return x <= rhs.x;
} }
}; };