diff --git a/src/qtlibtorrent/torrentspeedmonitor.cpp b/src/qtlibtorrent/torrentspeedmonitor.cpp index 9b593ac8b..82e21c203 100644 --- a/src/qtlibtorrent/torrentspeedmonitor.cpp +++ b/src/qtlibtorrent/torrentspeedmonitor.cpp @@ -140,7 +140,7 @@ Sample SpeedSample::average() const if (m_speedSamples.empty()) return Sample(); - return Sample(m_sum) * (1. / m_speedSamples.size()); + return Sample(m_sum) * (qreal(1.) / m_speedSamples.size()); } void TorrentSpeedMonitor::removeSamples(const QTorrentHandle& h) {