summaryrefslogtreecommitdiff
path: root/apt-pkg/install-progress.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2018-05-04 19:02:23 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2018-05-05 00:34:22 +0200
commit5f9c05db78926dfb063fdd0493ecc6b8e12c2e02 (patch)
treea05f9b87d660dc1f4b7cb20de1f8c59eec5ea7a7 /apt-pkg/install-progress.cc
parent1d77c915005f7630949e2ce706055ee3235009b6 (diff)
Avoid implicitly promotion of float to double
Reported-By: gcc -Wdouble-promotion Gbp-Dch: Ignore
Diffstat (limited to 'apt-pkg/install-progress.cc')
-rw-r--r--apt-pkg/install-progress.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/install-progress.cc b/apt-pkg/install-progress.cc
index f9c8b6d96..2e8fac236 100644
--- a/apt-pkg/install-progress.cc
+++ b/apt-pkg/install-progress.cc
@@ -383,7 +383,7 @@ bool PackageManagerFancy::DrawStatusLine()
{
int padding = 4;
auto const progressbar_size = size.columns - padding - progress_str.size();
- auto const current_percent = percentage / 100.0;
+ auto const current_percent = percentage / 100.0f;
std::cout << " "
<< GetTextProgressStr(current_percent, progressbar_size)
<< " ";