Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-21 17:24:56 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-21 19:00:48 +0300
commit19488ee125734c616559a6ad94369bc28feddc7e (patch)
treeb8c7cae0e0691b31452e79d89f66dd5c0aa7725e /source/blender/blenlib/intern/timecode.c
parenta887e1ea436f14762d9b768ba2d394b7afab4ee9 (diff)
Fix (harmless) Cycles ASAN warnings
Diffstat (limited to 'source/blender/blenlib/intern/timecode.c')
-rw-r--r--source/blender/blenlib/intern/timecode.c2
1 files changed, 1 insertions, 1 deletions
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);