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:
authorCampbell Barton <ideasman42@gmail.com>2016-02-10 05:59:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-02-10 07:27:28 +0300
commit2cbf32e0fb471c23a81785707200296a049b3017 (patch)
treed7f1fa0ccf7b4af10bb153e6a954a86230ec0527 /source/blender/editors
parent184a2ee5a4a79540656a545f65f7bdbe3803d1cd (diff)
Cleanup: double promotion
Also remove null checks from args with non-null attribute.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/interface/interface_templates.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index a404cde371e..d149c8cb7a4 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -3399,7 +3399,7 @@ static char *progress_tooltip_func(bContext *UNUSED(C), void *argN, const char *
BLI_timecode_string_from_time_simple(elapsed_str, sizeof(elapsed_str), elapsed);
if (progress) {
- const double remaining = (elapsed / progress) - elapsed;
+ const double remaining = (elapsed / (double)progress) - elapsed;
BLI_timecode_string_from_time_simple(remaining_str, sizeof(remaining_str), remaining);
}