From 19488ee125734c616559a6ad94369bc28feddc7e Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 21 Jun 2019 16:24:56 +0200 Subject: Fix (harmless) Cycles ASAN warnings --- source/blender/blenlib/intern/timecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib') diff --git a/source/blender/blenlib/intern/timecode.c b/source/blender/blenlib/intern/timecode.c index 9b6ed00c704..228f656949c 100644 --- a/source/blender/blenlib/intern/timecode.c +++ b/source/blender/blenlib/intern/timecode.c @@ -213,7 +213,7 @@ size_t BLI_timecode_string_from_time_simple(char *str, const int hr = ((int)time_seconds) / (60 * 60); const int min = (((int)time_seconds) / 60) % 60; const int sec = ((int)time_seconds) % 60; - const int hun = ((int)(time_seconds * 100.0)) % 100; + const int hun = ((int)(fmod(time_seconds, 1.0) * 100)); if (hr) { rlen = BLI_snprintf(str, maxncpy, "%.2d:%.2d:%.2d.%.2d", hr, min, sec, hun); -- cgit v1.2.3