13
0

fix construction of Beats from an int64_t that exceeds INT32_MAX

This commit is contained in:
Paul Davis 2022-06-21 14:41:25 -06:00
parent 71ee12af6a
commit d6d9792dcb

View File

@ -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) {