diff options
author | John Emmas <johne53@tiscali.co.uk> | 2014-01-13 14:26:19 +0000 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2014-01-13 14:26:19 +0000 |
commit | 1fb9437e26bf22ad6cf3c86365566644c7d117dd (patch) | |
tree | 26715f654631fc2e99e7f1c8da675d79378a49fe /libs/timecode/src/bbt_time.cc | |
parent | 5da8c2b47624c7e10adab8ea062855bdf375c7bb (diff) |
'libs/timecode' - Change some instances of 'rint' to be 'lrint' (better compatibility with MSVC)
Diffstat (limited to 'libs/timecode/src/bbt_time.cc')
-rw-r--r-- | libs/timecode/src/bbt_time.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/timecode/src/bbt_time.cc b/libs/timecode/src/bbt_time.cc index cdff66fd69..3b74c27612 100644 --- a/libs/timecode/src/bbt_time.cc +++ b/libs/timecode/src/bbt_time.cc @@ -43,6 +43,6 @@ BBT_Time::BBT_Time (double dbeats) assert (dbeats >= 0); bars = 0; - beats = rint (floor (dbeats)); - ticks = rint (floor (BBT_Time::ticks_per_beat * fmod (dbeats, 1.0))); + beats = lrint (floor (dbeats)); + ticks = lrint (floor (BBT_Time::ticks_per_beat * fmod (dbeats, 1.0))); } |