1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-07 15:04:13 +00:00

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.
This commit is contained in:
Jordan Lee 2015-12-06 21:07:37 +00:00
parent 1b67e9b266
commit 8d66fb3387

View file

@ -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;