libpbd: fix implementation of int62_t::operator== and ::operator!=

Reversed logic error
This commit is contained in:
Paul Davis
2020-12-08 20:33:11 -07:00
parent 747281a244
commit 170541deb7

View File

@@ -118,8 +118,8 @@ class alignas(16) int62_t {
* the semantics are well defined and the computation cost is trivial
*/
bool operator!= (int62_t const & other) const { if (flagged() != other.flagged()) return false; return val() != other.val(); }
bool operator== (int62_t const & other) const { if (flagged() != other.flagged()) return true; return val() == other.val(); }
bool operator!= (int62_t const & other) const { if (flagged() != other.flagged()) return true; return val() != other.val(); }
bool operator== (int62_t const & other) const { if (flagged() != other.flagged()) return false; return val() == other.val(); }
explicit operator int64_t() const { return int62(v); }