diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-05-01 11:46:44 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-05-01 11:46:44 +0200 |
commit | c3513f7e83804d63f3ba8e65d34ada38974d7851 (patch) | |
tree | 5bad333d46f0b8561a2058c630a8ab0b04344a2a /src | |
parent | 6cba8dacea773ab37ae457e2a2d24d2ead9f68a4 (diff) |
tool_cb_prg: fix double-promotion warning
clang complains:
tool_cb_prg.c:86:22: error: implicit conversion increases
floating-point precision: 'float' to 'double'
[-Werror,-Wdouble-promotion]
Fix this by using a double instead of a float constant.
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_cb_prg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_cb_prg.c b/src/tool_cb_prg.c index eae80fe12..d4ecb3cef 100644 --- a/src/tool_cb_prg.c +++ b/src/tool_cb_prg.c @@ -83,7 +83,7 @@ int tool_progress_cb(void *clientp, } else if(point != bar->prev) { frac = (double)point / (double)total; - percent = frac * 100.0f; + percent = frac * 100.0; barwidth = bar->width - 7; num = (int) (((double)barwidth) * frac); if(num > MAX_BARLENGTH) |