mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
Fix warning about integer division.
bugprone-integer-division: Result of integer division used in a floating point context; possible loss of precision.
This commit is contained in:
parent
c9fe383813
commit
bb27b24596
1 changed files with 1 additions and 1 deletions
|
|
@ -3274,7 +3274,7 @@ TempoMap::twist_tempi (TempoPoint* ts, samplepos_t start_sample, samplepos_t end
|
||||||
double copy_sclock_ratio = 1.0;
|
double copy_sclock_ratio = 1.0;
|
||||||
|
|
||||||
if (next_to_next_t) {
|
if (next_to_next_t) {
|
||||||
next_sclock_ratio = (next_to_next_t->sclock() - old_next_sclock) / (old_next_to_next_sclock - old_next_sclock);
|
next_sclock_ratio = (next_to_next_t->sclock() - old_next_sclock) / (double) (old_next_to_next_sclock - old_next_sclock);
|
||||||
copy_sclock_ratio = ((old_tc_sclock - next_t->sclock()) / (double) (old_tc_sclock - old_next_sclock));
|
copy_sclock_ratio = ((old_tc_sclock - next_t->sclock()) / (double) (old_tc_sclock - old_next_sclock));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue