From 170541deb73d1465c99d5cceda698c6b90f1f136 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 8 Dec 2020 20:33:11 -0700 Subject: [PATCH] libpbd: fix implementation of int62_t::operator== and ::operator!= Reversed logic error --- libs/pbd/pbd/int62.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/pbd/pbd/int62.h b/libs/pbd/pbd/int62.h index f001b77093..0676b9634b 100644 --- a/libs/pbd/pbd/int62.h +++ b/libs/pbd/pbd/int62.h @@ -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); }