From b42727b92a86ce9456cbe94193606799585ee764 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 14 Mar 2021 11:01:37 -0600 Subject: [PATCH] temporal: fix use of std::abs on 64 bit value --- 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 172f1e56a8..0cffee7aba 100644 --- a/libs/pbd/pbd/int62.h +++ b/libs/pbd/pbd/int62.h @@ -130,7 +130,7 @@ class alignas(16) int62_t { bool operator!= (int64_t n) const { return val() != n; } bool operator== (int64_t n) const { return val() == n; } - int62_t abs() const { const int64_t tmp = v; return int62_t (flagged(tmp), ::abs(int62(tmp))); } + int62_t abs() const { const int64_t tmp = v; return int62_t (flagged(tmp), ::llabs(int62(tmp))); } int62_t& operator+= (int64_t n) { while (1) {