From d6d9792dcb16918bf41cb440d5d768ed8cf8cb50 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 21 Jun 2022 14:41:25 -0600 Subject: [PATCH] fix construction of Beats from an int64_t that exceeds INT32_MAX --- libs/temporal/temporal/beats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/temporal/temporal/beats.h b/libs/temporal/temporal/beats.h index 030be30a65..2e5887e3d0 100644 --- a/libs/temporal/temporal/beats.h +++ b/libs/temporal/temporal/beats.h @@ -70,7 +70,7 @@ public: Beats(const Beats& other) : _ticks(other._ticks) {} /** Create from a precise beats:ticks pair. */ - explicit Beats(int32_t b, int32_t t) : _ticks ((b*PPQN) + t) {} + explicit Beats(int64_t b, int64_t t) : _ticks ((b*PPQN) + t) {} /** Create from a real number of beats. */ static Beats from_double (double beats) {