Changeset 14611


Ignore:
Timestamp:
Dec 6, 2015, 9:07:37 PM (6 years ago)
Author:
jordan
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/DetailsDialog.cc

    r14609 r14611  
    413413
    414414  // myHaveLabel
    415   double sizeWhenDone = 0;
    416   double available = 0;
     415  uint64_t sizeWhenDone = 0;
     416  uint64_t available = 0;
    417417  if (torrents.empty ())
    418418    {
     
    421421  else
    422422    {
    423       double leftUntilDone = 0;
     423      uint64_t leftUntilDone = 0;
    424424      int64_t haveTotal = 0;
    425425      int64_t haveVerified = 0;
Note: See TracChangeset for help on using the changeset viewer.