Fix incorrect return type on fixed point comparison operators
This commit is contained in:
parent
543218e489
commit
5742885021
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user