Fixed qMin
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
3046822272
commit
a7029a9e53
2 changed files with 3 additions and 3 deletions
|
@ -175,7 +175,7 @@ bool Tar::extract(QIODevice* in, QString dst)
|
|||
qCritical() << "The expected blocksize was not respected when reading file";
|
||||
return false;
|
||||
}
|
||||
tmp.truncate(qMin(BLOCKSIZE, size));
|
||||
tmp.truncate(qMin(qint64(BLOCKSIZE), size));
|
||||
out.write(tmp);
|
||||
size -= BLOCKSIZE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue