diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2014-05-14 02:59:25 -0400 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2014-05-14 02:59:25 -0400 |
commit | cd0ac04080132464b3e7f19804405ed036ff0cc1 (patch) | |
tree | 985fd003d44c0db499c43c79ebb25ca456440f6b | |
parent | d067e27762e6ee69dabc9d48a80828b6287511c1 (diff) |
don't use llrint on already-integral variables
This could trick people into thinking that there is a floating-point
type hiding behind the typedef instead of an integer.
-rw-r--r-- | libs/ardour/tempo.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index a2a400ad32..621d1e2c74 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -1017,11 +1017,11 @@ TempoMap::_extend_map (TempoSection* tempo, MeterSection* meter, if (current.beats == 1) { DEBUG_TRACE (DEBUG::TempoMath, string_compose ("Add Bar at %1|1 @ %2\n", current.bars, current_frame)); - _map.push_back (BBTPoint (*meter, *tempo,(framepos_t) llrint(current_frame), current.bars, 1)); + _map.push_back (BBTPoint (*meter, *tempo, current_frame, current.bars, 1)); bar_start_frame = current_frame; } else { DEBUG_TRACE (DEBUG::TempoMath, string_compose ("Add Beat at %1|%2 @ %3\n", current.bars, current.beats, current_frame)); - _map.push_back (BBTPoint (*meter, *tempo, (framepos_t) llrint(current_frame), current.bars, current.beats)); + _map.push_back (BBTPoint (*meter, *tempo, current_frame, current.bars, current.beats)); } if (next_metric == metrics.end()) { |