From 47c849cf95d828a18d8f6508fe02723dbec21624 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Mon, 24 Mar 2014 18:48:26 +0000 Subject: [PATCH] Modify some initialization slightly to keep MSVC happy --- libs/timecode/timecode/time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/timecode/timecode/time.h b/libs/timecode/timecode/time.h index ad7af28037..5ee763d33e 100644 --- a/libs/timecode/timecode/time.h +++ b/libs/timecode/timecode/time.h @@ -69,7 +69,7 @@ struct LIBTIMECODE_API Time { frames = 0; subframes = 0; rate = a_rate; - drop = (rintf(100.f * a_rate) == 2997); + drop = (lrintf(100.f * (float)a_rate) == (long)2997); } bool operator== (const Time& other) const {