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:
parent
1b67e9b266
commit
8d66fb3387
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue