From 8d66fb3387e884821be9ba9f556e28d4be03bf7d Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sun, 6 Dec 2015 21:07:37 +0000 Subject: [PATCH] fix -Wfloat-equal warning When calculating the 'Have' line for transmission-qt's details dialog, use int64s rather than doubles for sizeWhenDone, leftUntilDone, and available. --- qt/DetailsDialog.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qt/DetailsDialog.cc b/qt/DetailsDialog.cc index 8dcc9f24d..bb825cf47 100644 --- a/qt/DetailsDialog.cc +++ b/qt/DetailsDialog.cc @@ -412,15 +412,15 @@ DetailsDialog::refresh () const QString stateString = string; // myHaveLabel - double sizeWhenDone = 0; - double available = 0; + uint64_t sizeWhenDone = 0; + uint64_t available = 0; if (torrents.empty ()) { string = none; } else { - double leftUntilDone = 0; + uint64_t leftUntilDone = 0; int64_t haveTotal = 0; int64_t haveVerified = 0; int64_t haveUnverified = 0;