From 1be136adbd427cc2c4ea11150299e4dc028ead39 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 21 Jun 2022 14:41:46 -0600 Subject: [PATCH] allow construction of Beats with a beat count that exceeds INT32_MAX --- libs/temporal/temporal/beats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/temporal/temporal/beats.h b/libs/temporal/temporal/beats.h index 2e5887e3d0..6f6599130e 100644 --- a/libs/temporal/temporal/beats.h +++ b/libs/temporal/temporal/beats.h @@ -80,8 +80,8 @@ public: } /** Create from an integer number of beats. */ - static Beats beats(int32_t beats) { - return Beats(beats, 0); + static Beats beats(int64_t beats) { + return Beats (beats, 0); } /** Create from ticks at the standard PPQN. */