From 179f2b262402495e80fcbfcd000c912e65b90a0a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 29 Nov 2020 12:43:17 -0700 Subject: [PATCH] change value of int62_t::max to avoid flag bit being set --- libs/pbd/pbd/int62.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/pbd/int62.h b/libs/pbd/pbd/int62.h index 6ade77dff9..8e70a2eb09 100644 --- a/libs/pbd/pbd/int62.h +++ b/libs/pbd/pbd/int62.h @@ -61,7 +61,7 @@ class alignas(16) int62_t { int62_t (bool bc, int64_t vc) : v (build (bc, vc)) {} int62_t (int62_t const & other) { v.store (other.v.load()); } - static const int64_t max = 4611686018427387904; + static const int64_t max = 4611686018427387903; /* 2^62 - 1 */ static const int64_t min = -2305843009213693952; bool flagged() const { return flagged (v); }