fix construction of Beats from an int64_t that exceeds INT32_MAX
This commit is contained in:
parent
71ee12af6a
commit
d6d9792dcb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user