[partition] Keep 64-bit integers for swap sizes

FIXES #1849
This commit is contained in:
Adriaan de Groot 2021-12-11 13:19:08 +01:00
parent adaed52818
commit 03da766b39

View File

@ -71,7 +71,7 @@ swapSuggestion( const qint64 availableSpaceB, Config::SwapChoice swap )
// Allow for a fudge factor // Allow for a fudge factor
suggestedSwapSizeB = qRound( suggestedSwapSizeB * overestimationFactor ); suggestedSwapSizeB = qRound64( suggestedSwapSizeB * overestimationFactor );
// don't use more than 10% of available space // don't use more than 10% of available space
if ( !ensureSuspendToDisk ) if ( !ensureSuspendToDisk )