Skip to content

Commit 56d87b1

Browse files
committed
refactor(propagateupload): explicit cast to avoid implicit int-to-double
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
1 parent 0e4a6b1 commit 56d87b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsync/propagateupload.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ void PropagateUploadFileCommon::adjustLastJobTimeout(AbstractNetworkJob *job, qi
736736

737737
job->setTimeout(qBound(
738738
// Calculate 3 minutes for each gigabyte of data
739-
qMin(thirtyMinutes - 1, qRound64(threeMinutes * fileSize / 1e9)),
739+
qMin(thirtyMinutes - 1, qRound64(threeMinutes * static_cast<double>(fileSize) / 1e9)),
740740
job->timeoutMsec(),
741741
// Maximum of 30 minutes
742742
thirtyMinutes));

0 commit comments

Comments
 (0)