mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
fix construction of Beats from an int64_t that exceeds INT32_MAX
This commit is contained in:
parent
71ee12af6a
commit
d6d9792dcb
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue