Skip to content

Commit deed69b

Browse files
committed
Use qint64 for filesize.
1 parent 0a4ed4d commit deed69b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

analysis/analysisrunner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void AnalysisRunner::cancel()
230230
mStatus = Canceled;
231231
}
232232

233-
quint64 AnalysisRunner::fileSize() const
233+
qint64 AnalysisRunner::fileSize() const
234234
{
235235
return mFileSize;
236236
}
@@ -239,7 +239,7 @@ QString AnalysisRunner::humanFileSize() const
239239
{
240240
int unit;
241241
const char *units [] = {" Bytes", " kB", " MB", " GB"};
242-
quint64 size = fileSize(); // or whatever
242+
qint64 size = fileSize(); // or whatever
243243

244244
for (unit=-1; (++unit<3) && (size>1023); size/=1024);
245245

analysis/analysisrunner.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class AnalysisRunner : public QRunnable
9090

9191
void cancel();
9292

93-
quint64 fileSize() const;
93+
qint64 fileSize() const;
9494

9595
QString humanFileSize() const;
9696

@@ -123,7 +123,7 @@ class AnalysisRunner : public QRunnable
123123
QString mMessage;
124124
int mProgression = 0;
125125
int mSequenceCount = 0;
126-
int mFileSize = 0;
126+
qint64 mFileSize = 0;
127127
int mDuration = 0;
128128
Status mStatus = Waiting;
129129
bool mCancel = false;

0 commit comments

Comments
 (0)