From b1001f6f79bfa5a19f4a43dade55b23a00fea02d Mon Sep 17 00:00:00 2001 From: Baris Date: Tue, 16 Sep 2025 21:21:35 +0200 Subject: [PATCH] fix(folderstatusmodel): 32 bit int overflow in current item progress fixed Signed-off-by: Baris --- src/gui/folderstatusmodel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index e1b4af66c7..e4374182c4 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -1017,10 +1017,10 @@ void FolderStatusModel::slotSetProgress(const ProgressInfo &progress) // find the single item to display: This is going to be the bigger item, or the last completed // item if no items are in progress. auto curItem = progress._lastCompletedItem; - auto curItemProgress = -1; // -1 means finished - auto biggerItemSize = 0; - auto estimatedUpBw = 0; - auto estimatedDownBw = 0; + qint64 curItemProgress = -1; // -1 means finished + qint64 biggerItemSize = 0; + qint64 estimatedUpBw = 0; + qint64 estimatedDownBw = 0; QStringList filenamesList; for (const auto &syncFile : progress._currentItems) { if (curItemProgress == -1 || (ProgressInfo::isSizeDependent(syncFile._item)