'libs/timecode' - Change some instances of 'rint' to be 'lrint' (better compatibility with MSVC)

This commit is contained in:
John Emmas
2014-01-13 14:26:19 +00:00
parent 5da8c2b476
commit 1fb9437e26
2 changed files with 11 additions and 11 deletions

View File

@@ -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)));
}